-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateReport.m
More file actions
19 lines (16 loc) · 975 Bytes
/
createReport.m
File metadata and controls
19 lines (16 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%% Send reports
%Read options
configSSTWebpage
InformeActualizaData=load(strcat(DirDataSST,'/reportUpdateData'));
InformeCicloEstacional=load(strcat(DirFigures,'/data/reportSeasonalCycleSSTRaprocan'));
InformeAnual=load(strcat(DirFigures,'/data/reportYearlySSTRaprocan'));
%try
%EnviaCorreoArgo('pedro.velez@ieo.es',sprintf('SST %s',InformeActualizaData.Informe(1:end-1)),sprintf('> Datos diarios\n%s\n\n> Datos mensuales\n%s\n\n > %Datos anuales\n%s\nhttp://www.oceanografia.es/research_SST.html',InformeCicloEstacional.InformeDia,InformeCicloEstacional.InformeMes,InformeAnual.InformeAnho))
%end
fid=fopen('./data/report.txt','w');
fprintf(fid,'<b>SST Report</b> \n%s\n\n%s\n\n%s \n\n%s\n\n <a href="http://www.oceanografia.es/pedro/research_SST.html">SST</a>', ...
strtrim(InformeActualizaData.Report), ...
strtrim(InformeCicloEstacional.InformeDia), ...
strtrim(InformeCicloEstacional.InformeMes), ...
strtrim(InformeAnual.InformeAnho));
fclose(fid);