Hi allÂ
I am fairly new to GIS and R and am trying to download, reproject, mosaic and
save MODIS NDVI and EVI data as a geotiff. I need tiles from across North
America, so a lot of data and would prefer to find an automatic solution. I've
come across modisDownload but can't seem to get it to workâ¦I think the code
below manages  to download the hdf files but I don't see the geotiff mosaic
file that I expect (code based on tutorial found atÂ
http://r-gis.net/?q=ModisDownload):
I am using a mac and the MRT bin folder is stored in my "Applications" folder.
######### setwd("./MODIS") # set directory to location R script and where I
want the output
mrtpath<-"/Applications/bin" # tell R where MRT is stored
source('ModisDownload.R') # run the R script from r-gis.net
library(RCurl) #raster package is already loaded
x=3 # Now as per the online tutorial which gives code to do the following
# Downloads selected tiles, and mosaic, reproject them in UTM_WGS84, zone 30
projection and convert all bands into Geotif format (the original HDF
will be deleted!)
ModisDownload(x=x,h=c(17,18),v=c(4,5),dates="2011.05.01",MRTpath=mrtpath,proj_type="UTM",utm_zone=30,datum="WGS84",pixel_size=1000)
#########
Can anyone tell me what I'm doing wrong? The code seems to run but only
produces four hdf files⦠I'm open to other suggestions as to how to get and
process MODIS dataâ¦even the MRT tool seems to be giving me trouble so if
there is a step-by-step tutorial for beginners out there for how to do this,
I'd really appreciate a point in the right direction!
Thanks
[[alternative HTML version deleted]]
_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo