Revision 58d05081
Added by Adam Wilson about 11 years ago
climate/procedures/MOD35_ExtractProcessPath.r | ||
---|---|---|
6 | 6 |
library(raster) |
7 | 7 |
library(spgrass6) |
8 | 8 |
library(rgeos) |
9 |
##download 3 days of modis swath data: |
|
10 | 9 |
|
11 | 10 |
#### Set up command for running swtif to grid and mosaic the swath data |
12 | 11 |
stitch=paste("sudo MRTDATADIR=\"/usr/local/heg/2.12/data\" PGSHOME=/usr/local/heg/2.12/TOOLKIT_MTD PWD=/home/adamw /usr/local/heg/2.12b/bin/swtif") |
... | ... | |
15 | 14 |
url="ftp://ladsweb.nascom.nasa.gov/allData/51/MOD35_L2/2012/" |
16 | 15 |
dir.create("swath") |
17 | 16 |
|
17 |
##download 3 days of modis swath data: |
|
18 | 18 |
getdata=F |
19 | 19 |
if(getdata) |
20 | 20 |
system(paste("wget -S --recursive --no-parent --no-directories -N -P swath --accept \"hdf\" --accept \"002|003|004\" ",url)) |
Also available in: Unified diff
Adding ee.MOD09.py script to process and download data from Google Earth Engine