Project

General

Profile

« Previous | Next » 

Revision 714db1db

Added by Benoit Parmentier about 11 years ago

downloading of North America tiles, continued...

View differences:

climate/research/oregon/interpolation/download_and_produce_MODIS_LST_climatology.R
8 8
#
9 9
#AUTHORS: Benoit Parmentier    
10 10
#         based on modified earlier python scripts from J. Regetz
11
#DATE: 05/20/2013                                                                                 
11
#DATE: 05/29/2013                                                                                 
12 12

  
13 13
#PROJECT: NCEAS INPLANT: Environment and Organisms --TASK#???--   
14 14

  
......
18 18
  
19 19
  ###Function to download and calculate LST climatology from MODIS tiles
20 20
  #AUTHOR: Benoit Parmentier                                                                       
21
  #DATE: 05/20/2013                                                                                 
21
  #DATE: 05/29/2013                                                                                 
22 22
  #PROJECT: NCEAS INPLANT: Environment and Organisms --TASK#363--   
23 23
  
24 24
  #1) var 
......
78 78
  
79 79
  list_param_python_script <- list(list_tiles_modis,start_year,end_year,start_month,end_month,hdfdir,
80 80
                                   night,download,out_suffix_modis)
81
  names(list_param_python_script)<-c("list_andtiles_modis","start_year","end_year","start_month","end_month","hdfdir",
81
  names(list_param_python_script)<-c("list_tiles_modis","start_year","end_year","start_month","end_month","hdfdir",
82 82
                                     "night","download","out_suffix_modis")
83 83
  list_param_python_script_str <- paste(unlist(list_param_python_script), collapse=" ")
84 84
  
......
115 115

  
116 116
## Run function:
117 117

  
118
#list_tiles_modis <- c("h10v04,h11v04,h12v04,h13v04,h14v04,h07v06") #tiles for Northenr America, Northern US...
119
list_tiles_modis <- c("h12v04,h13v04,h14v04,h07v06") #tiles for Northenr America, Northern US...
118 120
#list_tiles_modis <- c("h11v08,h11v07,h12v07,h12v08,h10v07,h10v08") #tile for Venezuela and surrounding area
119 121
#list_tiles_modis <- c("h08v04,h09v04") #tiles for Oregon #defined above...
120
list_tiles_modis <- c("h12v10,h13v10") #tiles for Oregon #defined above...
122

  
123
#list_tiles_modis <- c("h09v04,h09v04") #tiles for Oregon #defined above...
124
#list_tiles_modis <- c("h09v08,h09v07,h08v07,h0706,h08v06,h09v06,h10v06,h08v05,h09v05,h10v05,h11v05,h12v05") #tiles for Central America and Mexico Southern US...
121 125
#list_tiles_modis <- c("h09v09,h10v09,h11v09,h12v09,h13v09,h14v09")
122 126
#list_tiles_modis <-c("h30v10,h31v10,h32v10,h30v11,h31v11") #list("Queensland")
123 127

  
......
128 132
var="TMAX"
129 133
start_year = "2001"
130 134
end_year = "2010"
131
hdfdir =  '/home/layers/commons/modis/MOD11A1_tiles' #destination file where hdf files are stored locally after download.
135
#path on Jupiter
136

  
137
hdfdir =  '/data/project/layers/commons/modis/MOD11A1_tiles' #destination file where hdf files are stored locally after download.
132 138
#hdfdir =  '/home/parmentier/Data/IPLANT_project/MOD11A1_tiles'
133 139
download=1
134 140
clim_calc=0
135
out_suffix_modis="_05222013"
141
out_suffix_modis="_05292013"
136 142

  
137 143
list_param_download_clim_LST_script <- list(list_tiles_modis,start_year,end_year,hdfdir,
138 144
                                 var,grass_setting_script,modis_download_script, clim_script,

Also available in: Unified diff