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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% initialization.

Présentations similaires


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

1 Overview %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% initialization section

2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

3

4 %nakedsoftware. org opensource license, copyright 2010 stephane
%nakedsoftware.org opensource license, copyright 2010 % %developed by Stephane Poirier, M.Sc. Optical Physics, Remote Sensing Application Software Developer ( ) %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\ratio application (lauched with ar\sp\main_ratio.m) %oifii.org's ar\sp\ratio 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 , Journal of Geophysical Research - Atmosphere, %Submitted June 2009, %This study's database can be downloaded from the author web site at: % %this function is used to compute the ratios (delta tbs), the threshold, summer start day, summer end day and day of first snow (jour1neige) %démarche pour sortir les ratio, seuil et jours : %%version 3.1: main_ratio_ssmi(), calcul_ratiojour() modif, spi 2009nov19, %version 3.0: main_ratio_ssmi(), k:\ path modif , spi 2009nov19,

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

6 function m=etape_ratio(zone,etape,dataset,an,phase,pol)

7 initialization section

8

9 [driveletter]=getsourceimagedatabasedrive();if(~exist(driveletter,'dir'))display([driveletter,' drive not ready']);return;end load('srcarsplib_path.mat'); load('srcimgdb_paths.mat'); %pathratio='D:\Spoirier\mw\ratio'; if(dataset==1) %pathratio='D:\smmr_ratio'; %srcimgdb_path_smmr_ratio %pathratio='k:\d-smmr_ratio'; pathratio=srcimgdb_path_smmr_ratio(1:strfind(lower(srcimgdb_path_smmr_ratio),'\ratio_canada')-1); elseif(dataset==2) %pathratio='D:\ssmi_ratio'; %pathratio='k:\d-ssmi_ratio'; pathratio=srcimgdb_path_ssmi_ratio(1:strfind(lower(srcimgdb_path_ssmi_ratio),'\ratio_canada')-1); else warning('etape_ratio(), error, wrong dataset id in etape_ratio()'); return; end % rappel des etapes et des FCT ASSOCIEES % etape 1 : enregistrer les TB => /Documents/TB/'zone'/aaaa/Djjj_jjj/LjjjppffAm % Pm % etape 2 : calcul + enregistrement des ratio % [m] = record_ratio(zone,year,phase,dataset); % : SMMR ; 2 : SSMI % fichiers : Documents/ratio/ratio_'zone'/fichier_ratio/aaaa/ % etape 3 : calcul et enregistrement des ratios filtrés % [ratiofiltre]=filtre_ratio(zone,dataset,an,phase,jour1,jour2) ; % Documents/ratio/ratio_'zone'/fichier_ratiofiltre/aaaa/ratio_amjjj % etape 4 : correction des ratios filtrés % [ratio,ratiocorrige_an1,ratiocorrige_an2,journan1,journan2] = interpolation_ratiofiltre(zone,dataset,an,phase); % étape 5 : calcul + enregistrement des moy ete ; ecart type ete ; moy hiver ; ecart type hiver ; seuil % [moy_ete,ecart_ete,moy_hiver,ecart_hiver,seuil] = calcul_moyecart(zone,dataset,phase,pol,an); % /Documents/ratio/ratio_'zone'/fichier_moyecarttype/aaaa/moyeteAM % ecarttypeeteAM % moyhiverAM % ecarttypehiverAM % seuileteAM % étape 6 : calcul des jours 1 de neige % [jour1] = calcul_jour1neige(zone,dataset,an,phase,pol) ; % : jd et jf % [jdebut,jfin] = calcul_jdjf(zone,dataset,an,pol,phase) ; % /Documents/ratio/ratio_'zone'/fichier_jdjf if etape==1 disp(['ETAPE 1: Enregistrer tout d''abord les TB sur le disque dur ', ', année: ',num2str(an),' (dataset=',num2str(dataset),'), phase: ',phase]); elseif etape==2 disp(['ETAPE 2: calcul + enregistrement des ratio ', ', année: ',num2str(an),' (dataset=',num2str(dataset),'), phase: ',phase]); [m]=record_ratio(zone,an,phase,dataset,pathratio); elseif etape == 3 disp(['ETAPE 3: calcul et enregistrement des ratios filtrés ',', année: ',num2str(an),' (dataset=',num2str(dataset),'), phase: ',phase]); jour1=1; jour2=366; if dataset==1 %SMMR if an==1978 jour1=298; jour2=365; elseif an==1987 jour2=232; elseif dataset==2, %SSMI if an==1987 jour1=213; warning('erreur, dataset=',num2str(dataset),' non supporté'); [ratiofiltre]=filtre_ratio(zone,dataset,an,phase,jour1,jour2,pathratio); elseif etape==4 if(((dataset==1)&&(an==1978))||((dataset==2)&&(an==1987))) %ces annees sont partielles, elles n'ont pas d'annee anterieure ni de debut d'annee, donc inutile %d'appliquer interpolation_ratiofiltre() pour ces annees partielles disp(['ETAPE 4: interpolation des ratios filtrés impossible (annee partielle)',', année: ',num2str(an),' (dataset=',num2str(dataset),'), phase: ',phase]); %les ratios filtrés ne présentent pas de valeurs entre les jour 356 de l'année i-1 et jour 11 de l'année i, %interpolation_ratiofiltre() extrapole afin de combler cette periode. disp(['ETAPE 4: interpolation des ratios filtrés ',', année: ',num2str(an),' (dataset=',num2str(dataset),'), phase: ',phase]); [ratio,ratiocorrige_an1,ratiocorrige_an2,journan1,journan2]=interpolation_ratiofiltre(zone,dataset,an,phase,pathratio); disp('VERIFIER SI LES FICHIERS SONT ENREGISTRES '); elseif etape==5 disp(['ETAPE 5: calcul + enregistrement des moy ete ; ecart type ete ; moy hiver ; ecart type hiver ; seuil ',', année: ',num2str(an),' (dataset=',num2str(dataset),'), phase: ', phase]); [moy_ete,ecart_ete,moy_hiver,ecart_hiver,seuil]=calcul_moyecart(zone,dataset,phase,pol,an,pathratio); elseif etape==6 disp(['ETAPE 6: calcul des jours 1 de neige ', ', année: ',num2str(an),' (dataset=',num2str(dataset),'), phase: ',phase]); [jour1]=calcul_jour1neige(zone,dataset,an,phase,pol,pathratio); disp('ETAPE 6: calcul des jours debut et fin de periode ete '); [jdebut,jfin]=calcul_jdjf(zone,dataset,an,pol,phase,pathratio); end%function


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

Présentations similaires


Annonces Google