[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-geo
Subject:    [R-sig-Geo] Antw: RE:  MODIS download
From:       Matteo Mattiuzzi <matteo.mattiuzzi () boku ! ac ! at>
Date:       2011-10-28 7:35:05
Message-ID: 4EAA77490200002700010E08 () gwia2 ! boku ! ac ! at
[Download RAW message or body]

Dear Babak,
 
Sure, it was hard to know, the package is very new!
Yes the basic is surely the same... the local storage approach is
little different...
For running MRT there is the function runMRT() that calls getHDF() for
checking availability of data. And the parameters are very simple.
 
Regarding wget, yesterday I inserted in getHDF() the parameter for
download.file ‘dlmethod' (by default now ‘auto'), and it was running
fine on Linux and actually I'm missing the reason for using wget (I took
it from Hengels code like that).
 
Actually after announcing getMODIS the bug reports did not wait for
long… the function getTILE() that converts extent information to a tile
and extent relevant information does not work proper on high longitudes,
basically the Pacific adjacent countries.   
 
Thanks and may we can benefit from each other!
 
Matteo
 >>> Babak Naimi <naimi@itc.nl> 27.10.2011 23:28 >>>
Dear Matteo,

Thanks for your nice package. Actually, I was not aware of this
package. I think the ModisDownload and getHDF functions work almost the
same since in both you can select a range of tiles and dates for
required Modis product. The nice thing, however, about your package is
that you only need to know the name of MODIS product for downloading it,
while in ModisDownload you need to introduce the FTP address. In
ModisDownload also I guess it is nice as by executing one command, you
can download, subset, mosaic, reproject and have the images in Geotiff
format. 

About wget, I think it is not necessary to have it on your machine for
windows (at least for windows 7!). I used the following command inside
ModisDownload and tested it on Windows and Linux. It works fine!

download.file(url,destfile=ModisName,mode='wb',method='auto',quiet=T,
cacheOK=FALSE)

Best regards,
Babak



-----Original Message-----

--- On Thu, 27/10/11, Matteo Mattiuzzi <matteo.mattiuzzi@boku.ac.at>
wrote:

> From: Matteo Mattiuzzi <matteo.mattiuzzi@boku.ac.at>
> Subject: [R-sig-Geo] MODIS download
> To: r-sig-geo@r-project.org
> Date: Thursday, 27 October, 2011, 9:37
> 
> Dear list, dear Babak
>  
> I recently created a package that also downloads Modis-grid
> data. I was
> waiting for the communication to the list until more tests
> have been
> absolved. But now test could now be made by interested
> people. The
> package works slightly different than the script of Babak,
> so I hope
> that we didn't do the work totally twice. 
> The origin of the "getMODIS" package is also in Hengels
> (great thanks)
> code but the capabilities have been enhanced. 
>  
> The package has been tested with Linux and Windows 7 and it
> works fine,
> but tests are still going on! (At the moment wget is used
> for download
> the files so probably you have to install it first on your
> machine
> (thanks Pieter Beck for reminding me that)
> If you wish to use MRT capabilities you need to install it
> as well (+
> set the path to MRT!) 
>  
> > install.packages("getMODIS", repos="http://R-Forge.R-project.org")
>  
> The purpose of teh package is:
> - to get a local MODIS data archive (so only parts of the
> online pool)
> by simple subst. Everything what is available locally is
> not downloaded
> again! The main sub setting information is: Product, period
> and extent.
> The package can use objects from raster package, all
> raster* objects or
> the extent(raster*), or the "national boundaries" file
> (worldHires) from
> the mapdata package as extent information.
>  
> - to use MRT capabilites  
>  
> MRT is not fully implemented yet (tested only with
> geographic LatLon
> and UTM projection as output. My personal priority list can
> be modified
> by tester whishes).
> The manual can be downloaded here:
> http://www.wuala.com/MatteoMattiuzzi/getMODIS/
> A stepwise how to is missing yet, as soon as my time allows
> I'll create
> it. 
> I'm happy for any feedback!
> Matteo Mattiuzzi
> 
>     [[alternative HTML version deleted]]
> 
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> 

	[[alternative HTML version deleted]]



_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic