La présentation est en train de télécharger. S'il vous plaît, attendez

La présentation est en train de télécharger. S'il vous plaît, attendez

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

Présentations similaires


Présentation au sujet: "Overview %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%"— Transcription de la présentation:

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 ******************** ** genere_avi_ssmi_tb(region,anneedebut,anneefin) ** ********************

7 function genere_avi_ssmi_tb(region,anneedebut,anneefin) %fonction ecrite par stephane poirier %pour generer les fichiers *.avi hardcoded herebelow (voir test-19-H.avi', '*19H';et suivantes) % %cette fonction traitera tous les fichiers de la region %i.e.: genere_avi_ssmi_tb('canada', 1987, 1987); %i.e.: genere_avi_ssmi_tb('canada', 1987, 2006); % %la validation sur les annees suppose que les donnees sont de type SMMR % if nargin<3 display('genere_avi_ssmi_tb(''canada'',1987,2008)'); return; end yearmax=2008; if(strcmp(upper(region), 'CANADA')~=1) warning('region parameter is not valid'); return; end %if (anneedebut 2006) if (anneedebut yearmax) warning('anneedebut parameter is not valid'); return; end %if (anneefin 2006) if (anneefin yearmax) warning('anneefin parameter is not valid'); return; end if (anneedebut > anneefin) warning('anneedebut must be smaller or equal to anneefin'); return; end cheminentree = 'D:\ssmi\160x240'; cheminsortie = 'D:\ssmi\160x240'; anneecourante = anneedebut; while(anneecourante<=anneefin) %1) pour chacun des annees (dossiers annees), trouver les pentades (dossiers pentades) chemincourant = [region,'\',num2str(anneecourante)]; pentades = dir([cheminentree,'\',chemincourant]); %files = dir(fullfile(directory,'*')); [nombredepentades,nombredestructuresparpentades]=size(pentade s); %1.1) assuming any number of subfolders could be present for n = 1:nombredepentades if pentades(n).isdir && ~strcmp(pentades(n).name,'.') && ~strcmp(pentades(n).name,'..') %les pentades sont nescessairement des dossiers pentadecourante=pentades(n).name; cheminpentadecouranteentree = [[cheminentree,'\',chemincourant],'\',pentadecourante]; cheminpentadecourantesortie = [[cheminsortie,'\',chemincourant],'\',pentadecourante]; %2) proceder a la generation des fichiers.avi pour chacun des dossiers pentades %genere_avi(dossierentree, dossiersortie, fichiersortie,filtrenomfichier) genere_avi(cheminpentadecouranteentree,cheminpentadecourantes ortie,'test-19-H.avi','*19H'); genere_avi(cheminpentadecouranteentree,cheminpentadecourantes ortie,'test-19-V.avi','*19V'); genere_avi(cheminpentadecouranteentree,cheminpentadecourantes ortie,'test-37-H.avi','*37H'); genere_avi(cheminpentadecouranteentree,cheminpentadecourantes ortie,'test-37-V.avi','*37V'); genere_avi(cheminpentadecouranteentree,cheminpentadecourantes ortie,'test-TIM.avi','*TIM'); end %3) preparer compteur pour annee suivante anneecourante=anneecourante+1; end %fclose('all'); end


Télécharger ppt "Overview %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%"

Présentations similaires


Annonces Google