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 % %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\'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 , Journal of Geophysical Research - Atmosphere, %Submitted June 2009, 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_ 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

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

6

7 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%% %version 3.1: main_ratio_ssmi(), calcul_ratiojour() modif, spi 2009nov19, %version 3.0: main_ratio_ssmi(), k:\ path modif, spi 2009nov19, %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%% %fonction qui enregistre les ratios journaliers dans un fichier %dans le dossier 'ratio_xxxxxx\fichier_ratio\' % %cette fonction appelle calcul_ratiojour(). function [m] = record_ratio(zone,year,phase,dataset,pathratio); prevdir = pwd; % FCT ASSOCIEES % - ratio = calcul_ratiojour(zone,year,day,phase,dataset); m=[]; testcanada=strcmp(zone,'canada'); testrussie=strcmp(zone,'russie'); testtibet=strcmp(zone,'tibet'); if testcanada==1 dim=[ ]; elseif testrussie==1 dim=[ ]; elseif testtibet==1 dim=[90 180]; end if IsLeapYear(year) == 1 nbrejour=366; else nbrejour=365; end %poirier, begin %for i=1:365%nbrejour jourdebut = 1; jourfin = nbrejour; if dataset==1 && year==1978 %SMMR jourdebut = 298; elseif dataset==1 && year==1987 %SMMR jourfin = 232; elseif dataset==2 && year==1987 %SSMI jourdebut = 213; end for i=jourdebut:jourfin %poirier, end ratio=calcul_ratiojour(zone,year,i,phase,dataset); chemin=[pathratio,filesep,'ratio_',zone,filesep,'fichier_rati o',filesep,int2str(year),filesep] ; if(~isdir(chemin)) mkdir(chemin); end feval('cd',chemin); nomfichier=['ratio_',lower(phase),sprintf('%03d',i)]; f=fopen(nomfichier,'w+'); fwrite(f,ratio,'float32'); fclose(f); clear f; cd(prevdir); end cd(prevdir); m=1;


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

Similar presentations


Ads by Google