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
%%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%
******************** ** affiche_fichier(cheminfichier,nomfichier,format) ** ********************
function affiche_fichier(cheminfichier,nomfichier,masque) success = 0; %fonction qui permet de lire les fichiers en combinant un masque if nargin<=3 %dir(fullfile(directory,'*.m')) %[directory,'\',nomfichier] file = dir(fullfile(directory,nomfichier)); % Les valeurs possibles pour DATATYPE sont : % 1 = masque (doit être composé exclusivement de 1 et de 0) % 2 = NSIDC SMMR TIM (facteur 100 présent, données manquantes = 32768) % 3 = NSIDC SSMI TIM (facteur 10 présent, données manquantes = 255) % 4 = NSIDC TB (facteur 10 présent, données manquantes = 0) % 5 = TB (données manquantes = 0, données masquées = 1) % 6 = FWS (données manquantes = -1, données masquées = 1) % 7 = TS (données manquantes = -100, données masquées = 100) if file.bytes == dim =[ ]; if nargin==2 precision='uint16'; end dataType = 4; if(masque==0) maskFile = ''; else %maskFile = ['C:\ar\sp\mask', '\', 'MaskCAN160x240']; maskFile = ['C:\spoirier\oifii-org\httpdocs\ns- org\nsd\ar\sp\mask', '\', 'MaskCAN160x240']; end elseif file.bytes == dim =[ ]; if nargin==2 precision='uint16'; % 200*284=56800, /56800=2 end elseif file.bytes == dim =[ ]; if nargin==2 precision='uint16'; %les TbV seront alors des temperature de brillance end elseif file.bytes == dim =[ ]; if nargin==2 precision='uint8'; %les TbV seront alors des temps de passage end else dim =[ ]; %dim =[ ]; if nargin==2 precision='float32'; end else return; end return DisplayFile([cheminfichier,'\',nomfichier], precision, dataType, gridSize, maskFile, imageTitle, subplotMNP);