Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 90f28f25 authored by Gildas Cambon's avatar Gildas Cambon
Browse files

Some cleaning and update on plotting scripts

parent 4742b2c2
No related branches found
No related tags found
1 merge request!7First commits for the dev_newcopernicus branch
......@@ -158,8 +158,9 @@ if plot_fig_1,
xlabel('Wind [knots]','FontSize',fsize)
set(gcf, 'PaperPositionMode', 'auto');
export_fig -transparent file.pdf
eval(['! mv -f file.pdf ',dirout,outname,'.pdf']);
% export_fig -transparent file.pdf
% eval(['! mv -f file.pdf ',dirout,outname,'.pdf']);
eval(['print -dpdf ',dirout,outname,'.pdf']);
end
close(nc)
end % plot_fig_1
......@@ -246,8 +247,9 @@ for tndx=hdays+1:nx+hdays
end
set(gcf, 'PaperPositionMode', 'auto');
export_fig -transparent file.pdf
eval(['! mv -f file.pdf ',dirout,outname,'.pdf']);
% export_fig -transparent file.pdf
% eval(['! mv -f file.pdf ',dirout,outname,'.pdf']);
eval(['print -dpdf ',dirout,outname,'.pdf']);
end
end
end % plot_fig_2
......@@ -323,8 +325,9 @@ for tndx=hdays+1:nx+hdays
xlabel('SST [^{o}C]','FontSize',fsize)
set(gcf, 'PaperPositionMode', 'auto');
export_fig -transparent file.pdf
eval(['! mv -f file.pdf ',dirout,outname,'.pdf']);
% export_fig -transparent file.pdf
% eval(['! mv -f file.pdf ',dirout,outname,'.pdf']);
eval(['print -dpdf ',dirout,outname,'.pdf']);
end
end
end % plot_fig_3
......@@ -378,8 +381,9 @@ for tndx=hdays+1:nx+hdays
xlabel('SSH [cm]','FontSize',fsize)
set(gcf, 'PaperPositionMode', 'auto');
export_fig -transparent file.pdf
eval(['! mv -f file.pdf ',dirout,outname,'.pdf']);
% export_fig -transparent file.pdf
% eval(['! mv -f file.pdf ',dirout,outname,'.pdf']);
eval(['print -dpdf ',dirout,outname,'.pdf']);
end
end
end % plot_fig_4
......@@ -431,8 +435,9 @@ for tndx=hdays+1:nx+hdays
xlabel('HBL [m]','FontSize',fsize)
set(gcf, 'PaperPositionMode', 'auto');
export_fig -transparent file.pdf
eval(['! mv -f file.pdf ',dirout,outname,'.pdf']);
% export_fig -transparent file.pdf
% eval(['! mv -f file.pdf ',dirout,outname,'.pdf']);
eval(['print -dpdf ',dirout,outname,'.pdf']);
end
end
end % plot_fig_5
......
......@@ -73,7 +73,7 @@ figure('Units','centimeters',...
'PaperUnits','centimeters')
%
fsize=8;
nx=6;
nx=4;
cff1=4;
cff2=2;
%
......@@ -106,7 +106,7 @@ xlabel(['CROCO experiment: ',datestr(today)],'FontSize',10)
%
left=left1;
bot=bot6;
for tndx=4*5:4:4*5+4*(nx)
for tndx=4:4:nx*4
subplot('Position',[left bot width height])
nc=netcdf('SCRATCH/croco_frc_GFS_0.nc');
smstime=[];
......@@ -228,10 +228,11 @@ xlabel('SST [^{o}C]','FontSize',fsize)
%
% Print the image
%
eval(['print -depsc2 croco_',num2str(rundate),'.eps'])
eval(['!convert -density 85 croco_',num2str(rundate),...
'.eps croco_',num2str(rundate),'.jpg'])
eval(['!mv -f croco_',num2str(rundate),'.jpg croco_realtime.jpg'])
% eval(['print -depsc2 croco_',num2str(rundate),'.eps'])
% eval(['!convert -density 85 croco_',num2str(rundate),...
% '.eps croco_',num2str(rundate),'.jpg'])
eval(['print -djpeg croco_',num2str(rundate),'.jpg'])
eval(['!mv croco_',num2str(rundate),'.jpg croco_realtime.jpg'])
%
% send the file to the web site
%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment