Overview %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%
%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: % 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
%%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%
**************************************** ***** b=1 année bissextile 366 jours ***** ***** b=0 année standard 365 jours ***** ***** jj=1:365/366 ***** ***** ***** date=datejj(jj,b) ***** ****************************************
function [jour]=jourjj(jj,annee,format) if nargin<3 format='';end %'%02d' %function date=datejj(jj,b) %{ if nargin==1 b=0; end %} b=(~rem(annee,4)&rem(annee,100))|~rem(annee,400); %cette ligne est la fonction IsLeapYear() qui retourne 1 ou 0 if jj<=31 mois='jan'; %mois='janvier'; jour=num2str(jj,format); date=[jour,' ',mois]; end if jj>=32 & jj<=59+b jj=jj-31; mois='feb';%mois='février'; jour=num2str(jj,format); date=[jour,' ',mois]; end if jj>=60+b & jj<=90+b jj=jj-(59+b); mois='mar';%mois='mars'; jour=num2str(jj,format); date=[jour,' ',mois]; end if jj>=91+b & jj<=120+b jj=jj-(90+b); mois='apr';%mois='avril'; jour=num2str(jj,format); date=[jour,' ',mois]; end if jj>=121+b & jj<=151+b jj=jj-(120+b); mois='may';%mois='mai'; jour=num2str(jj,format); date=[jour,' ',mois]; end if jj>=152+b & jj<=181+b jj=jj-(151+b); mois='jun';%mois='juin'; jour=num2str(jj,format); date=[jour,' ',mois]; end if jj>=182+b & jj<=212+b jj=jj-(181+b); mois='jul';%mois='juillet'; jour=num2str(jj,format); date=[jour,' ',mois]; end if jj>=213+b & jj<=243+b jj=jj-(212+b); mois='aug';%mois='aout'; jour=num2str(jj,format); date=[jour,' ',mois]; end if jj>=244+b & jj<=273+b jj=jj-(243+b); mois='sep';%mois='septembre'; jour=num2str(jj,format); date=[jour,' ',mois]; end if jj>=274+b & jj<=304+b jj=jj-(273+b); mois='oct';%mois='octobre'; jour=num2str(jj,format); date=[jour,' ',mois]; end if jj>=305+b & jj<=334+b jj=jj-(304+b); mois='nov';%mois='novembre'; jour=num2str(jj,format); date=[jour,' ',mois]; end if jj>=335+b & jj<=365+b jj=jj-(334+b); mois='dec';%mois='décembre'; jour=num2str(jj,format); date=[jour,' ',mois]; end if((jj==366)&&(b~=1)) date='xx xxx'; end end%function