-
Notifications
You must be signed in to change notification settings - Fork 0
/
Crea_webPagesGlorys.m
151 lines (126 loc) · 6.48 KB
/
Crea_webPagesGlorys.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
close all; clear all
load Globales
%% Load configuration
configIEOOS
titulo="Sistema de observacion oceánica del IEO";
%% Inicio
for iDem=1:1:5;
FileHtmlClim=strcat(PaginaWebDir,'/html/','Clim_',Demarcaciones{1,iDem},'.html');
fig1=strcat(Demarcaciones{1,iDem},'_temp_promedio10.png');
text1='Temperatura promedio a 10 m de profundidad';
fig2=strcat(Demarcaciones{1,iDem},'_perfiles_T_S_promedio.png');
text2='Variación con la profundidad del promedio de Temperatura y Salinidad';
fig3=strcat(Demarcaciones{1,iDem},'_climatologia.png');
text3='Variación mensual de la Temperatura y Salinidad promedio';
fig4=strcat(Demarcaciones{1,iDem},'_temp_promedio_capas_contorno.png');
text4='Variación temporal de anomalia de Temperatura promedio';
fprintf('>>>>> %s\n',mfilename)
fid = fopen(FileHtmlClim,'w');
fprintf(' > Writting leaflet file \n');
fprintf(fid,'<!--A Design by W3layouts\n');
fprintf(fid,'Author: W3layout\n');
fprintf(fid,'Author URL: http://w3layouts.com\n');
fprintf(fid,'License: Creative Commons Attribution 3.0 Unported\n');
fprintf(fid,'License URL: http://creativecommons.org/licenses/by/3.0/\n');
fprintf(fid,'-->\n');
fprintf(fid,'<html>\n');
fprintf(fid,'<head>\n');
fprintf(fid,' <title>IEOOS</title>\n');
fprintf(fid,' <link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />\n');
fprintf(fid,' <!-- jQuery (necessary for Bootstrap JavaScript plugins) -->\n');
fprintf(fid,' <script src="js/jquery.min.js"></script>\n');
fprintf(fid,' <!-- Custom Theme files -->\n');
fprintf(fid,' <!--theme-style-->\n');
fprintf(fid,' <link href="css/style.css" rel="stylesheet" type="text/css" media="all" />\n');
fprintf(fid,' <!--//theme-style-->\n');
fprintf(fid,' <meta name="viewport" content="width=device-width, initial-scale=1">\n');
fprintf(fid,' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n');
fprintf(fid,' <meta name="keywords" content="IEOOS" />\n');
fprintf(fid,'</head>\n');
fprintf(fid,'<body>\n');
fprintf(fid,'<!--SST-->\n');
fprintf(fid,' <div class="container">\n');
fprintf(fid,' <div class="blog">\n');
fprintf(fid,' <div class="top-blog">\n');
fprintf(fid,' <h2>Temperatura del mar en la Demarcación %s</h2>\n',Demarcaciones{2,iDem});
fprintf(fid,' </div>\n');
fprintf(fid,' <br>\n');
fprintf(fid,' <p>Los datos de temperatura en toda la columna de agua para la demarcación de %s, obtenidos a partir de la informacion que provee COPERNICUS</a></p>\n',Demarcaciones{2,iDem});
fprintf(fid,' <br>\n');
fprintf(fid,'<!--Inicios items -->\n');
fprintf(fid,' <div class="blog-head">\n');
fprintf(fid,'<!-------->\n');
fprintf(fid,' <div class="col-md-12 blog-bottom">\n');
fprintf(fid,' <div class=" blog-top">\n');
fprintf(fid,' <div class="blog-grid">\n');
fprintf(fid,' <h3><center>%s</center></h3>\n',text1);
fprintf(fid,' <p></p>\n');
fprintf(fid,' </div>\n');
fprintf(fid,' <center><a href="https://www.oceanografia.es/IEOOS/Clim/images/%s"><img class="img-responsive"\n',fig1);
fprintf(fid,' src="https://www.oceanografia.es/IEOOS/Clim/images/%s" alt="" /></a></center>\n',fig1);
fprintf(fid,' </div>\n');
fprintf(fid,' </div>\n');
fprintf(fid,'<!----\n');
fprintf(fid,'<!-------->\n');
fprintf(fid,' <div class="col-md-12 blog-bottom">\n');
fprintf(fid,' <div class=" blog-top">\n');
fprintf(fid,' <div class="blog-grid">\n');
fprintf(fid,' <h3><center>%s</center></h3>\n',text2);
fprintf(fid,' <p></p>\n');
fprintf(fid,' </div>\n');
fprintf(fid,' <center><a href="https://www.oceanografia.es/IEOOS/Clim/images/%s"><img class="img-responsive"\n',fig2);
fprintf(fid,' src="https://www.oceanografia.es/IEOOS/Clim/images/%s" alt="" /></a></center>\n',fig2);
fprintf(fid,' </div>\n');
fprintf(fid,' </div>\n');
fprintf(fid,'<!----\n');
fprintf(fid,'<!-------->\n');
fprintf(fid,' <div class="col-md-12 blog-bottom">\n');
fprintf(fid,' <div class=" blog-top">\n');
fprintf(fid,' <div class="blog-grid">\n');
fprintf(fid,' <h3><center>%s</center></h3>\n',text3);
fprintf(fid,' <p></p>\n');
fprintf(fid,' </div>\n');
fprintf(fid,' <center><a href="https://www.oceanografia.es/IEOOS/Clim/images/%s"><img class="img-responsive"\n',fig3);
fprintf(fid,' src="https://www.oceanografia.es/IEOOS/Clim/images/%s" alt="" /></a></center>\n',fig3);
fprintf(fid,' </div>\n');
fprintf(fid,' </div>\n');
fprintf(fid,'<!----\n');
fprintf(fid,'<!-------->\n');
fprintf(fid,' <div class="col-md-12 blog-bottom">\n');
fprintf(fid,' <div class=" blog-top">\n');
fprintf(fid,' <div class="blog-grid">\n');
fprintf(fid,' <h3><center>%s</center></h3>\n',text4);
fprintf(fid,' <p></p>\n');
fprintf(fid,' </div>\n');
fprintf(fid,' <center><a href="https://www.oceanografia.es/IEOOS/Clim/images/%s"><img class="img-responsive"\n',fig4);
fprintf(fid,' src="https://www.oceanografia.es/IEOOS/Clim/images/%s" alt="" /></a></center>\n',fig4);
fprintf(fid,' </div>\n');
fprintf(fid,' </div>\n');
fprintf(fid,'<!----\n');
fprintf(fid,'<!-------->\n');
fprintf(fid,'<!--discalimer-->\n');
fprintf(fid,' <div class="services">\n');
fprintf(fid,' <div class="container">\n');
fprintf(fid,' <div class="top-services">\n');
fprintf(fid,' <p>Los datos proporcionados en estas páginas son sólamente a título informativo, por lo cual el Instituto Español de Oceanografia declinan toda responsabilidad por su uso.</p>\n');
fprintf(fid,' </div>\n');
fprintf(fid,' </div>\n');
fprintf(fid,' </div>\n');
fprintf(fid,'<!----\n');
fprintf(fid,' <!--Fin items -->\n');
fprintf(fid,' </div>\n');
fprintf(fid,' <div class="clearfix"> </div>\n');
fprintf(fid,' </div>\n');
fprintf(fid,' </div>\n');
fprintf(fid,'</body>\n');
fprintf(fid,'</html>\n');
%% Ftp the file
fprintf(' > Uploading %s \n',FileHtmlClim);
ftpobj=FtpOceanografia;
cd(ftpobj,ftp_dir_clim);
mput(ftpobj,FileHtmlClim);
end
%% Writting Informe
%save(FileNameInforme,'Informe','platformes','juldsIB','platdatacentr')
%fprintf(' > %s \n',Informe)
fprintf('%s <<<<<\n',mfilename)