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
%%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%
function test160x240(); %easegrid northern hemisphere upperleft bottomright (x=1,y=1 x=721,y=721): %canada 160x240 x and y filter (1+180: ,1+230: ): %canada 160x240 upperleft bottomright (x= ,y=1+230 x=1+180,y= ): %{ x = [ ]; %upperleft upperright bottomright bottomleft y = [ ]; %upperleft upperright bottomright bottomleft [alon, alat]=pix2latlon(x,y); %upperleft upperright bottomright bottomleft [ax, ay]=latlon2pix(alon,alat); %upperleft upperright bottomright bottomleft %} %testing pix2latlon.m/easegrid.m and latlon2pix.m/ieasegrid.m [xx,yy]=meshgrid([1+180: ],[1+230: ]); [alon,alat]=pix2latlon(xx,yy); %upperleft upperright bottomright bottomleft [ax,ay]=latlon2pix(alon,alat); %upperleft upperright bottomright bottomleft xlswrite('test160x240-longitude.xls', rot90(alon)); xlswrite('test160x240-latitude.xls', rot90(alat)); %{ %testing function coordeasegrid.m %note spi: testing failed, use function latlon2pix.m instead [r,s] = coordeasegrid(alon,alat,'canada'); %} disp('done'); end