Presentation is loading. Please wait.

Presentation is loading. Please wait.

Overview %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%

Similar presentations


Presentation on theme: "Overview %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%"— Presentation transcript:

1 Overview %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%

2

3

4 %nakedsoftware.org opensource license, copyright 2010 stephane.poirier@oifii.org % %developed by Stephane Poirier, M.Sc. Optical Physics, Remote Sensing Application Software Developer (1991-2010) % %this function is part of oifii.org's ar\sp\ Microwave- derived 30-year Canada-Alaska Daily Temperature and Snowcover Databases library % %this function is part of oifii.org's ar\sp\'this folder' application (lauched with ar\sp\'this file'.m) %oifii.org's ar\sp\affiche_carte application is part of the oifii.org's ar\sp set of applications which %may also contain similar variant versions of this function with identical filename. % %A geophysical research paper about this work has been submitted in June 2009 for publication in JGR-Atmosphere %Royer, A. and Poirier S., Surface temperature spatial and temporal variations in North America from homogenized %satellite SMMR-SSM/I microwave measurements and reanalysis for 1979-2008, Journal of Geophysical Research - Atmosphere, %Submitted June 2009, http://www.oifii.org/tsatdb/Royer- Poirier_Microwave-derived-daily-surface- temperature_JGR2009JD012760_R2.pdf % %This study's database can be downloaded from the author web site at: %http://www.oifii.org/tsatdb/Royer-Poirier_Microwave-derived- daily-surface-temperature-db_1979-2008.zip % %this function is used to display the raw microwave raster data (NSIDC's SMMR and SSMI satellite, ref. nsidc.org) % %usage: % 20yymmmdd % %version 0.0, 20yymmmdd, spi, initial function draft % %nakedsoftware.org opensource license, copyright 2010 stephane.poirier@oifii.org

5 %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%

6

7 %version 0.2: function figures2bmp(output2dir,savesfig) %version 0.1: function figures2jpg(output2dir,savesfig) %comment: the bmp version of this function can be used conjointly with bmp2avi.exe to replace usage of the very slow and gui locking genere_avi.m matlab functions family %comment: no multimonitor support crash: in matlab capturescreen()-based getframe.m function figures2bmp(output2dir,savesfig) if nargin<2 savesfig=0; end %use savesfig=1 for saving all *.fig as well as.bmp if nargin<1 disp('usage: figures2bmp(''c:\temp'',0)'); return; end figure_handle_list=get(0,'Children'); figure_handle_list=sort(figure_handle_list); %save every graphs into an avi file outputpathname=output2dir; if isempty(strfind(lower(output2dir),'c:\')) outputpathname=fullfile(pwd,output2dir); end if exist(outputpathname,'file') disp('error output directory already exists, remove or rename directory manually'); return; else mkdir(outputpathname); end [nn,mm]=size(figure_handle_list); for ih=1:nn if ih==1 figure(figure_handle_list(ih)); end frame=getframe(figure_handle_list(ih)); %image(frame.cdata); %colormap(frame.colormap); [X,Map]=frame2im(frame); outputfilename=fullfile(outputpathname,[num2str(ih,'%03d'),'. bmp']); if isempty(Map) imwrite(X,outputfilename,'bmp'); else imwrite(X,Map,outputfilename,'bmp'); end %save.fig (matlab figure format) if(savesfig==1) outputfilename=fullfile(outputpathname,[num2str(ih,'%03d'),'. fig']); hgsave(ih,outputfilename); end % clear frame; end %copyfile('c:\ar\sp\bmp2avi.exe',fullfile(output2dir,'bmp2avi.exe')); copyfile('C:\spoirier\oifii-org\httpdocs\ns- org\nsd\ar\sp\bmp2avi.exe',fullfile(output2dir,'bmp2avi.exe') ); %!bmp2avi.exe; end %function


Download ppt "Overview %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%"

Similar presentations


Ads by Google