[R-sig-Geo] Earthdata CMR access

Ben Tupper btupper @end|ng |rom b|ge|ow@org
Wed Apr 13 20:08:40 CEST 2022


Hi,

I was planning to use the httr package or the newish httr2 package
which should be able to handle the transactions.  Once a resource is
tracked down via search, I plan to use the ncdf4 package to access.

I can add headers to the http requests, so presumably that can include tokens.

But I am finding even the simple stuff like using the API to generate
a token, as shown here
https://wiki.earthdata.nasa.gov/display/EL/How+to+Generate+a+User+Token
,  to be challenging.  Thud!

Ben

httr: https://CRAN.R-project.org/package=httr
httr2: https://CRAN.R-project.org/package=httr2
ncdf4: https://CRAN.R-project.org/package=ncdf4

On Wed, Apr 13, 2022 at 1:03 PM Joe Lee <hyoklee using hdfgroup.org> wrote:
>
> Hi,
>
> I'm also interested in the solution that you're seeking
> since I've written a Python-equivalent CMR+OPeNDAP workflow a very long time ago [1].
>
> It's both very tricky and difficult nowadays
> because NASA tries to constrain AWS egress cost via Earthdata Login authentication.
>
> Does R provide a cURL-like library + a temporary token-based authentication?
>
> [1] https://earthdata.nasa.gov/collaborate/open-data-services-and-software/api/opendap/gesdisc-airs-opendap-cmr
>
>
> -----Original Message-----
> From: R-sig-Geo <r-sig-geo-bounces using r-project.org> On Behalf Of Ben Tupper
> Sent: Wednesday, April 13, 2022 11:41 AM
> To: r-sig-geo <r-sig-geo using r-project.org>
> Subject: [R-sig-Geo] Earthdata CMR access
>
> Hello,
>
> I am interested in accessing physical oceanography data from PO.DAAC (
> https://earthdata.nasa.gov/eosdis/daacs/podaac) from within R using opendap.  NASA is moving its data offerings to the cloud, and it is adopting Common Metadata Repositories ("CMR",
> https://cmr.earthdata.nasa.gov/search/site/docs/search/api.html) for searching.  CMR searching is in lieu of searching THREDDS catalogs.
>
> I'm finding the on-ramp to using CMR tricker than I had expected given the sales pitch behind CMR (or maybe the wheels have come off my car!)  I am wondering if anyone in this community has waded into using R-based CMR to access cloud-based geospatial data, and, if so, might be willing to share some insights or provide guidance?
>
> Regards,
> Ben
>
> --
> Ben Tupper (he/him)
> Bigelow Laboratory for Ocean Science
> East Boothbay, Maine
> http://www.bigelow.org/
> https://eco.bigelow.org
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo



-- 
Ben Tupper (he/him)
Bigelow Laboratory for Ocean Science
East Boothbay, Maine
http://www.bigelow.org/
https://eco.bigelow.org



More information about the R-sig-Geo mailing list