 addpath /ligo/svncommon/NbSVN/aligonoisebudget/trunk/Externals/SimulinkNb/Utils/

gwd = GWData();
gwd.make_kerberos_ready;
gwd.site_info(2).port = 31200;
gwd.site_info(2).server = 'nds.ligo-wa.caltech.edu';
gwd.site_info(2).server = 'nds.ligo.caltech.edu';


%%
channels = {'H1:LSC-SRCL1_INMON', 'H1:LSC-POPAIR_B_RF18_I_NORM_MON', 'H1:LSC-POPAIR_B_RF90_I_NORM_MON'}; 


time_fetch = tconvert('29 Nov 2018 20:00:00');
duration = 60*13;

[data, t, ~] = gwd.fetch(time_fetch, duration, channels);

% alog 14543 SRCL cts to meters


%%


srcl_in = data(:,1);
pop_18 = data(:,2);
pop_90 = data(:,3);


subplot(211)
plot(srcl_in, pop_18, 'o')
ylabel('POP 18')
grid on


subplot(212)
plot(srcl_in, pop_90,'o')
ylabel('POP 90')
xlabel('SRCL inmon')
grid on






