Project

General

Profile

« Previous | Next » 

Revision d3dd2b2e

Added by Adam Wilson over 11 years ago

Add first version of script to develop global modis MODLAND grid

View differences:

climate/procedures/Pleiades_MOD35.R
21 21

  
22 22
### list of tiles to process
23 23
tiles=c("h10v08","h11v08","h12v08","h10v07","h11v07","h12v07")  # South America
24
## a northern block of tiles
25
expand.grid(paste("h",11:17,sep=""),v=c("v00","v01","v02","v03","v04"))
24 26

  
25
## subset to MODLAND tiles
26
 modlandtiles=system("ls -r /nobackupp4/datapool/modis/MOD11A1.005/2010* | grep hdf$ | cut -c18-23 | sort | uniq - ",intern=T)
27
b## subset to MODLAND tiles
28
modlandtiles=system("ls -r /nobackupp4/datapool/modis/MOD11A1.005/2010* | grep hdf$ | cut -c18-23 | sort | uniq - ",intern=T)
27 29
 tb$land=tb$tile%in%modlandtiles
28 30
tiles=tb$tile[tb$land]
29 31

  

Also available in: Unified diff