clc
close all
clear

%{
load mat-files/ACSM_IOP1.mat

Org_IOP1=Org;
SO4_IOP1=SO4;
NO3_IOP1=NO3;
Chl_IOP1=Chl;
NH4_IOP1=NH4;
f44_IOP1=f44;
f43_IOP1=f43;
%mWater_IOP1=mWater;
time_IOP1=time_ACSM;

load mat-files/ACSM_Trans_Amb.mat

Org_IOP1=[Org_IOP1 Org];
SO4_IOP1=[SO4_IOP1 SO4];
NO3_IOP1=[NO3_IOP1 NO3];
Chl_IOP1=[Chl_IOP1 Chl];
NH4_IOP1=[NH4_IOP1 NH4];
f44_IOP1=[f44_IOP1 f44];
f43_IOP1=[f43_IOP1 f43];
%mWater=[mWater_IOP1 mWater];
time_IOP1=[time_IOP1 time_ACSM];

load mat-files/ACSM_IOP2.mat

Org=[Org_IOP1 Org];
SO4=[SO4_IOP1 SO4];
NO3=[NO3_IOP1 NO3];
Chl=[Chl_IOP1 Chl];
NH4=[NH4_IOP1 NH4];
f44=[f44_IOP1 f44];
f43=[f43_IOP1 f43];
%mWater=[mWater_IOP1 mWater];
time_ACSM=[time_IOP1 time_ACSM];

%}

load mat-files/ACSM_T2.mat

%load ACSM.mat

plot(time_ACSM,Org)
dynamicDateTicks([], [], 'dd/mm');

%Exporting data
serial_num='Not Avail';
Val_level='1';
Proc_vers='1.0';
Site='T2';

Instrument='ACSM';
Model='Quad';



labels{1}='Org';
labels{2}='SO4';
labels{3}='NO3';
labels{4}='Chl';
labels{5}='NH4';
%labels{6}='f44';
%labels{7}='f43';
%labels{8}='f60';

units{1}='(ug m-3)';
units{2}='(ug m-3)';
units{3}='(ug m-3)';
units{4}='(ug m-3)';
units{5}='(ug m-3)';
%units{6}='';
%units{7}='';
%units{8}='';
%units{8}='(Amps)';

dummy=[Org;SO4;NO3;Chl;NH4];

%dummy=[Org;SO4;NO3;Chl;NH4;f44;f43;mWater];
%dummy=[Org;SO4;NO3;Chl;NH4;100.*f44;100.*f43;100.*f60];

dummy=dummy';

export_LFA_GoAmazon(labels,units,Instrument,Model,serial_num,Site,Val_level,Proc_vers,max(size(time_ACSM)),time_ACSM,dummy)

%Calc_ACSM_CE