clear;close all;

mmdd_all=['1106';'1105';'1104';'1103';'1102';'1101';'1031';'1030'];
mmdd2_all=['1112';'1111';'1110';'1109';'1108';'1107';'1106';'1105'];
d0d7='d7';

for id=6:7
mmdd=mmdd_all(id,:)
mmdd2=mmdd2_all(id,:)

Wrk_path='/home/doglioli/ANDREA/MYMATLAB/LATEXtools/OSCAHR/CHL'

latN=45;
latS=41;
lonW=4;
lonE=10;

data_type='h';
nc_name=['2015',mmdd,'_d-OC_CNR-L3-CHL-MedOC3AD4_A_1KM-MED-NRT-v02.nc']
eval(['!gunzip OSCAHR/CHL/',nc_name,'.gz']);

lon=ncread(nc_name,'lon');
lat=ncread(nc_name,'lat');
chl=ncread(nc_name,'CHL');
chl=chl';

save([Wrk_path,'/',nc_name(1:end-3),'.mat'],'lon','lat','chl') 

eval(['!gzip OSCAHR/CHL/',nc_name]);

end%nfor id=1:8

