[R-sig-Geo] modis download authentication
Ben Tupper
btupper at bigelow.org
Thu Sep 8 13:29:02 CEST 2016
Hi,
RCurl's getBinaryURL() passes the '...' and '.opts' argument to RCurl's getURL(). The help page for getURL() shows an example that passes the username and password.
Will that do the trick?
Ben
> On Sep 8, 2016, at 7:16 AM, Luca Candeloro <luca.candeloro at gmail.com> wrote:
>
> I used succesfully the function getBinaryURL from RCurl library to download
> .hdf file, as in:
>
> content <- getBinaryURL("
> http://e4ftl01.cr.usgs.gov/MOLT/MOD11A2.005/2016.01.01/MOD11A2.A2016001.h18v04.005.2016012041335.hdf
> ")
>
> Since http://e4ftl01.cr.usgs.gov/ has recently applied a login and pass
> authentication to retrieve data, the previous code doesn't work.
> It seems (from
> https://lpdaac.usgs.gov/sites/default/files/public/get_data/docs/Command%20Line%20Access%20Tips%20for%20Utilizing%20Earthdata%20Login.docx
> )
> that curl options should be necessarily set.
> Does someone know how to correctly specify RCurl options in R, so that
> getBinaryURL works again?
> thanks,
> Luca
>
> [[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
Ben Tupper
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive, P.O. Box 380
East Boothbay, Maine 04544
http://www.bigelow.org
Report Gulf of Maine jellyfish sightings to jellyfish at bigelow.org or tweet them to #MaineJellies -- include date, time, and location, as well as any descriptive information such as size or type. Learn more at https://www.bigelow.org/research/srs/nick-record/nick-record-laboratory/mainejellies/
More information about the R-sig-Geo
mailing list