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

7 function [success, dateStr] = DateNb2Str(year, dayNb); %DATENB2STR Trouve une date de la forme 'année/mois/jour' à partir de l'année et % et du jour ordinal de l'année donnés. % % [SUCCESS, DATESTR] = DATENB2STR(YEAR, DAYNB) convertit l'année YEAR et le jour % ordinal de l'année DAYNB en une date DATESTR de la forme 'année/mois/jour'. % % YEAR est un entier. % % DAYNB est un entier compris entre 1 et 365 si YEAR est non-bissextile, et entre % 1 et 366 si YEAR est bissextile. % % DATESTR est de la forme 'année/mois/jour'. % À noter que DATESTR aura toujours 4 chiffres pour l'année, 2 pour le mois et 2 % pour le jour. % % SUCCESS = 1 si les paramètres d'entrée sont valides, sinon SUCCESS = 0. success = 0; dateStr = []; if dayNb (365 + IsLeapYear(year)) return; end daysInMonths = [31 28 31 30 31 30 31 31 30 31 30 31]; daysInMonths(2) = 28 + IsLeapYear(year); month = 1; dayOfMonth = 0; while dayNb ~= 0 if dayNb > daysInMonths(month) dayNb = dayNb - daysInMonths(month); month = month + 1; else dayOfMonth = dayNb; dayNb = 0; end dateStr = sprintf('%04d/%02d/%02d', year, month, dayOfMonth); success = 1;


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

Présentations similaires


Annonces Google