Overview %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%nakedsoftware. org opensource license, copyright 2010 stephane %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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%fclose('all');clear all;close all;clc function main_ratio_v1() %{ zone='canada'; dataset=1; 1: SMMR ; 2: SSMI an = 1978; phase = 'am'; 'am' ou 'pm' pol = 'V'; 'V' ou 'H' etape_ratio(zone,1,dataset,an,phase,pol); etape_ratio(zone,2,dataset,an,phase,pol); etape_ratio(zone,3,dataset,an,phase,pol); etape_ratio(zone,4,dataset,an,phase,pol); etape_ratio(zone,5,dataset,an,phase,pol); etape_ratio(zone,6,dataset,an,phase,pol); %} %note spi, le calcul n'utilise que la polarisation 'V' peu importe pol %et divise la bande 37GHz sur la bande 19GHz (ou 18GHz pour SMMR) % %note spi, un fichier ratio avec indexes tous a -10 est cree pour les %journees sans fichiers tb, voir code dans fonction lire_tb() %etape 2, calcul d'un ratio Tb pour chaque point (pixel 25kmx25km) %de chaque jourjulien (365 ou 366 lorsque l'annee est complete). tic etape_ratio('canada',2,1,1978,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratio\1978'); etape_ratio('canada',2,1,1979,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratio\1979'); etape_ratio('canada',2,1,1980,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratio\1980'); etape_ratio('canada',2,1,1981,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratio\1981'); etape_ratio('canada',2,1,1982,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratio\1982'); etape_ratio('canada',2,1,1983,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratio\1983'); etape_ratio('canada',2,1,1984,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratio\1984'); etape_ratio('canada',2,1,1985,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratio\1985'); etape_ratio('canada',2,1,1986,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratio\1986'); etape_ratio('canada',2,1,1987,'am','V'); toc %l'etape 3 du calcul etape_ratio() prends %environ 15min par annee sur le intel core %2 - 2.4GHz de poirier (et 25min en incluant %l'appel a genere_avi() pour creer le fichier %avi de visualisation. %l'etape 3 corrige les resultats de l'etape 2. %plus precisement, pour chaque point (pixel 25kmx25km) %ou le ratio n'est pas valide (parce que les valeures %Tb etaient absentes) l'etape 3 interpole lineairement %entre les joursjuliens (avant et apres) pour lesquels %il y a un ratio %etape 3, calcul d'un ratio Tb pour chaque point (pixel 25kmx25km) etape_ratio('canada',3,1,1978,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratiofiltre\1978'); etape_ratio('canada',3,1,1979,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratiofiltre\1979'); etape_ratio('canada',3,1,1980,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratiofiltre\1980'); etape_ratio('canada',3,1,1981,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratiofiltre\1981'); etape_ratio('canada',3,1,1982,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratiofiltre\1982'); etape_ratio('canada',3,1,1983,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratiofiltre\1983'); etape_ratio('canada',3,1,1984,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratiofiltre\1984'); etape_ratio('canada',3,1,1985,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratiofiltre\1985'); etape_ratio('canada',3,1,1986,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratiofiltre\1986'); etape_ratio('canada',3,1,1987,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratiofiltre\1987'); %la fonction interpolation_ratiofiltre() %doit etre reecrite - cas particulier %aucune donnees de l'annee precedente %et jour1 annee en cours est 298 pour 1978 %etape_ratio('canada',4,1,1978,'am','V'); etape_ratio('canada',4,1,1979,'am','V'); genere_avi('D:\ar\sp\ratio\ratio_canada\fichier_ratiofiltre\1979',... 'D:\ar\sp\ratio\ratio_canada\fichier_ratiofiltre\1979',... 'test-etape4.avi'); etape_ratio('canada',4,1,1980,'am','V'); etape_ratio('canada',4,1,1981,'am','V'); etape_ratio('canada',4,1,1982,'am','V'); etape_ratio('canada',4,1,1983,'am','V'); etape_ratio('canada',4,1,1984,'am','V'); etape_ratio('canada',4,1,1985,'am','V'); etape_ratio('canada',4,1,1986,'am','V'); etape_ratio('canada',4,1,1987,'am','V'); %l'etape 5 n'utilise que les series ete, %ete est une plage de joursjuliens entre %183 et 244 (voir calcul_moyecart()), il %faut donc exclure l'annee 1978 car elle %commence au jourjulien 298. %etape_ratio('canada',5,1,1978,'am','V'); etape_ratio('canada',5,1,1979,'am','V'); etape_ratio('canada',5,1,1980,'am','V'); etape_ratio('canada',5,1,1981,'am','V'); etape_ratio('canada',5,1,1982,'am','V'); etape_ratio('canada',5,1,1983,'am','V'); etape_ratio('canada',5,1,1984,'am','V'); etape_ratio('canada',5,1,1985,'am','V'); etape_ratio('canada',5,1,1986,'am','V'); etape_ratio('canada',5,1,1987,'am','V'); %pas calculable a cause que c'est une annee partielle %etape_ratio('canada',6,1,1978,'am','V'); %pas calculable a cause que l'annee anterieure est une annee partielle %etape_ratio('canada',6,1,1979,'am','V'); etape_ratio('canada',6,1,1980,'am','V'); etape_ratio('canada',6,1,1981,'am','V'); etape_ratio('canada',6,1,1982,'am','V'); etape_ratio('canada',6,1,1983,'am','V'); etape_ratio('canada',6,1,1984,'am','V'); etape_ratio('canada',6,1,1985,'am','V'); etape_ratio('canada',6,1,1986,'am','V'); %etape_ratio('canada',6,1,1987,'am','V'); end%function