Presentation is loading. Please wait.

Presentation is loading. Please wait.

Overview %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%

Similar presentations


Presentation on theme: "Overview %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%"— Presentation transcript:

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 %version 0.2 creates 5 connections to the same ftp server downloading 182*2 (A and D) files on each connection %version 0.x la prochaine version de cette fonction devrait ouvrir et fermer la connection au serveur ftp a tous les 50 fichiers %version 0.1 cette fonction se connecte au site ftp ci- dessus et telecharge tous les fichiers ci-dessous function ftp_ssmi_2008() %host='ftp://sidads.colorado.edu/pub/DATASETS/brightness- temperatures/easegrid/ssmi/north/2008/'; host='sidads.colorado.edu'; username='anonymous'; password='stephane.poirier@usherbrooke.ca'; year=2008; remotefolder=['/pub/DATASETS/brightness- temperatures/easegrid/ssmi/north/',num2str(year)]; filename_start='EASE-F13-NL'; filename_end={'19H.gz','19V.gz','37H.gz','37V.gz','TIM.gz'} for index=1:5 ftpconnection=ftp(host,username,password); cd(ftpconnection,remotefolder); binary(ftpconnection); %for doy=1:365 for doy=1:182 %EASE-F13-NL2008001A.19H.gz %EASE-F13-NL2008001D.19H.gz doy_string=sprintf('%03d',doy); file=[filename_start,num2str(year),doy_string,'A.',filename_e nd(index)]; mget(ftpconnection,file,'D:\ssmi\721x721'); file=[filename_start,num2str(year),doy_string,'D.',filename_e nd(index)]; mget(ftpconnection,file,'D:\ssmi\721x721'); end%for doy close(ftpconnection); end%for index remotefolder='/pub/DATASETS/brightness- temperatures/easegrid/near-real-time/ssmi'; filename_start='ID2-F13-NL'; %filename_end={'19H.gz','19V.gz','37H.gz','37V.gz','TIM.gz'}; filename_end={'19H.gz','19V.gz','37H.gz','37V.gz','tim.gz'}; %for index=2:5 %for index=5:5 for index=1:5 ftpconnection=ftp(host,username,password); cd(ftpconnection,remotefolder); binary(ftpconnection); %for doy=1:365 %for doy=1:182 for doy=183:366 %if((index==1)&&(doy<272)) continue;end %this line because files for index=1 before day 272 already downloaded %if((index==2)&&(doy<288)) continue;end %this line because files for index=1 before day 285 already downloaded if(doy==272) continue;end %this line because files for day 272 dont exist if(doy==285) continue;end %this line because files for day 285 dont exist if(doy==286) continue;end %this line because files for day 286 dont exist if(doy==288) continue;end %this line because files for day 288 dont exist if(doy==291) continue;end %this line because files for day 291 dont exist if(doy==292) continue;end %this line because files for day 292 dont exist if(doy==293) continue;end %this line because files for day 293 dont exist if(doy==298) continue;end %this line because files for day 298 dont exist if(doy==299) continue;end %this line because files for day 299 dont exist if(doy==300) continue;end %this line because files for day 300 dont exist if(doy==301) continue;end %this line because files for day 301 dont exist if(doy==302) continue;end %this line because files for day 302 dont exist if(doy==353) continue;end %this line because files for day 353 dont exist if(doy==358) continue;end %this line because files for day 358 dont exist if(doy==360) continue;end %this line because files for day 360 dont exist if(doy==362) continue;end %this line because files for day 362 dont exist if(doy==365) continue;end %this line because files for day 365 dont exist display(['batch ',num2str(index),' of 5, importing file ',num2str(doy),' of 366']); %EASE-F13-NL2008001A.19H.gz %EASE-F13-NL2008001D.19H.gz doy_string=sprintf('%03d',doy); file=[filename_start,num2str(year),doy_string,'A.',filename_e nd{1,index}]; mget(ftpconnection,file,'D:\ssmi\721x721'); file=[filename_start,num2str(year),doy_string,'D.',filename_e nd{1,index}]; mget(ftpconnection,file,'D:\ssmi\721x721'); end%for doy close(ftpconnection); end%for index end%function


Download ppt "Overview %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%"

Similar presentations


Ads by Google