[R-sig-Geo] Package MODIS error in function runMrt( ) object 'ftpdirs' not found

Forrest Stevens r-sig-geo at forreststevens.com
Wed Jul 15 20:44:09 CEST 2015


Hi guys, thank you for bringing this to our attention.  I believe I've
fixed the bug in the R-Forge version of the MODIS package.  If either
of you could install this from R-Forge and test it in your
environments that would be ideal.

Notice that these changes won't be reflected in the automated R-Forge
builds until at least tomorrow:
https://r-forge.r-project.org/scm/viewvc.php/pkg/MODIS/R/runMrt.R?root=modis&view=log

To install from the attached file (removed from r-sig-geo post):
install.packages("./MODIS.tar.gz", repos=NULL, type="source")

To install the package from R-Forge (once it has been built!):
install.packages("MODIS", repos="http://R-Forge.R-project.org")

Thanks and please don't hesitate to let us know if there are other
issues you find.  As an aside, you're less likely to run into these
types of inconsistencies if you use runGdal() instead of using the
MODIS Reprojection Tool.  I think more of us use that version and it's
likely to be much more well-tested.

Thanks,
Forrest

On Tue, Jul 14, 2015 at 8:32 PM, Roberto Horn <robertomhorn at gmail.com> wrote:
> It worked, problem solved!
>
> Thank you.
>
> 2015-07-14 21:21 GMT-03:00 Ahmadou Dicko <dicko.ahmadou at gmail.com>:
>
>> I had similar issue too.
>> I modified the runMrt to make it work, you will find attached a
>> working script that you can source to replace MODIS::runMrt before the
>> authors fix this bug (source('runMrt.R').
>>
>> Hope it helps.
>>
>>
>>
>>
>> On Wed, Jul 15, 2015 at 12:12 AM, Roberto Horn <robertomhorn at gmail.com>
>> wrote:
>> > Hello
>> >
>> > Im having trouble with function runMrt from the package MODIS. I've
>> > already looked for help in forums, with no success. Any help would be
>> > useful!
>> >
>> > runMrt(product="MOD09GA",tileH="13",tileV="11" ,begin="2014.01.01",
>> > end="2014.01.02", SDSstring="000000000000100001000",
>> > job="mod09ga/safra14.15", outProj="GEO", datum="WGS84",
>> > pixelSize="0.0045", mosaic="FALSE")
>> >
>> > All suggested packages are installed
>> > Output projection: Geographic
>> > Output pixel size: 0.0045
>> > Resampling method: nn
>> > No output projection parameters specified. Reprojecting with no
>> Parameters!
>> > Error in runMrt(product = "MOD09GA", tileH = "13", tileV = "11", begin
>> > = "2014.01.01",  :
>> >   object 'ftpdirs' not found
>> >
>> > -----------------------------------------------------
>> > System info:
>> > Win 7 32-bit
>> > R version 3.2.1 (2015-06-18)
>> > MODIS version: 0.10-29
>> > MRT directory: D:/MRT/MRT
>> > raster version: 2.4-15
>> > rgdal 1.0-4
>> > rgeos 0.3-11
>> > XML 3.98-1.3
>> > RCurl 1.95-4.7
>> >
>> >
>> > Thank you!
>> >
>> > _______________________________________________
>> > R-sig-Geo mailing list
>> > R-sig-Geo at r-project.org
>> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>>
>>
>> --
>> Ahmadou H. DICKO
>> statistician economist (Ingénieur Statisticien Économiste)
>> PhD candidate in Climate change economics
>> Faculty of economics and managment - Cheikh Anta Diop University
>> West African Science Service Center on Climate Change and Adaptated
>> Land Use (WASCAL)
>> Center for Development Research (ZEF) - University of Bonn
>> email : ahmadou.dicko at ucad.edu.sn
>> twitter : @dickoah
>> github : github/dickoa
>> tel : +221 33 827 55 16
>> portable: +221 77 123 81 69
>>
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list