Commit 0ed6f790 authored by Carmelo Magnafico's avatar Carmelo Magnafico
Browse files

update to webmust NT

parent 601c5b3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ classdef MatMust < handle
            % Initialize the values
            obj.POSToptions = weboptions('RequestMethod', 'POST', 'ArrayFormat', 'json', 'Timeout',180, 'MediaType','application/json');
            obj.GEToptions = weboptions('RequestMethod', 'GET', 'ArrayFormat', 'repeating', 'Timeout',180, 'MediaType','application/x-www-form-urlencoded');
            obj.url = 'https://bepicolombo.esac.esa.int/webclient-must/';
            obj.url = 'https://bepicolombo.esac.esa.int/ng-webmust/';
            obj.urlsub = 'mustlink/';
            obj.tockenfilename = 'auth.json';
            obj.loginstatus = false;
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ classdef MatMust < handle
            % Initialize the values
            obj.POSToptions = weboptions('RequestMethod', 'POST', 'ArrayFormat', 'json', 'Timeout',180, 'MediaType','application/json');
            obj.GEToptions = weboptions('RequestMethod', 'GET', 'ArrayFormat', 'repeating', 'Timeout',180, 'MediaType','application/x-www-form-urlencoded');
            obj.url = 'https://bepicolombo.esac.esa.int/webclient-must/';
            obj.url = 'https://bepicolombo.esac.esa.int/ng-webmust/';
            obj.urlsub = 'mustlink/';
            obj.tockenfilename = 'auth.json';
            obj.loginstatus = false;
+19 −11
Original line number Diff line number Diff line
@@ -29,18 +29,26 @@ proj_list = M.MatMust_getUserLinkedProjects('dump');
%%%
% with output:
% +++++++++++++ PROJECTS LIST +++++++++++++
% name: BEPITEST
% 	description: Test Database for Instruments  Team
% 	id: 8
% 	name: Profiles
% 	description: Profiles Project
% 	id: 5
% +++++++++++++++++
% 	name: BEPIMAGNETIC
% 	description: Magnetic Test Project
% 	id: 1
% +++++++++++++++++
% 	name: BEPICOMM
% 	description: LEOP and Commissioning Phase
% 	id: 7
% +++++++++++++++++
% [...]
% +++++++++++++++++
% 	name: BEPICRUISE
% 	description: BepiColombo Cruise Phase
% 	id: 9
% 	name: BEPI
% 	description: Test
% 	id: 10
% +++++++++++++++++

act_proj = 'BEPICRUISE';
act_proj = 'BEPI';
dataStart = '2018-11-26 13:00:00';
dataStop = '2018-11-26 13:40:00';

@@ -48,16 +56,16 @@ dataStop = '2018-11-26 13:40:00';

% for info type "help MatMust_getDataFromName"
% MatMust_getDataFromName(obj, ds, parname, dateStart, dateStop, options  )
data = M.MatMust_getDataFromName('BEPICRUISE', 'NSA03016', dataStart, dataStop);
data = M.MatMust_getDataFromName(act_proj, 'NSA03016', dataStart, dataStop);

% or if you want to plot 
data = M.MatMust_getDataFromName('BEPICRUISE', 'NSA03016', dataStart, dataStop, 'plot');
data = M.MatMust_getDataFromName(act_proj, 'NSA03016', dataStart, dataStop, 'plot');

%search a mnemonic in 
data = M.MatMust_searchTMparFromName('Est sc ang rate', act_proj,'dump','Description');

%you can get more than a variable a time
data = M.MatMust_getDataFromName('BEPICRUISE', {'NCAD09A1','NCAD09A2','NCAD09A3'}, dataStart , dataStop, 'plot');
data = M.MatMust_getDataFromName(act_proj, {'NCAD09A1','NCAD09A2','NCAD09A3'}, dataStart , dataStop, 'plot');