View source: R/earthdata_handler.R
bb_handler_earthdata | R Documentation |
This is a handler function to be used with data sets from NASA's Earthdata system. This function is not intended to be called directly, but rather is specified as a method
option in bb_source
.
bb_handler_earthdata(...)
... |
: parameters passed to |
This function uses bb_rget
, and so data sources using this function will need to provide appropriate bb_rget
parameters. Note that curl v5.2.1 introduced a breaking change to the default value of the 'unrestricted_auth' option: see <https://github.com/jeroen/curl/issues/260>. Your Earthdata source definition might require 'allow_unrestricted_auth = TRUE' as part of the method parameters.
TRUE on success
https://wiki.earthdata.nasa.gov/display/EL/How+To+Register+With+Earthdata+Login
## Not run:
## note that the full version of this data source is provided as part of bb_example_data_sources()
my_source <- bb_source(
name = "Sea Ice Trends and Climatologies from SMMR and SSM/I-SSMIS, Version 3",
id = "10.5067/IJ0T7HFHB9Y6",
description = "NSIDC provides this data set ... [truncated; see bb_example_data_sources()]",
doc_url = "https://nsidc.org/data/NSIDC-0192/versions/3",
citation = "Stroeve J, Meier WN (2018) ... [truncated; see bb_example_data_sources()]",
source_url = "https://daacdata.apps.nsidc.org/pub/DATASETS/nsidc0192_seaice_trends_climo_v3/",
license = "Please cite, see http://nsidc.org/about/use_copyright.html",
authentication_note = "Requires Earthdata login, see https://urs.earthdata.nasa.gov/.
Note that you will also need to authorize the application 'nsidc-daacdata'
(see 'My Applications' at https://urs.earthdata.nasa.gov/profile)",
method = list("bb_handler_earthdata", level = 4, relative = TRUE,
accept_download = "\\.(s|n|png|txt)$", allow_unrestricted_auth = TRUE),
user = "your_earthdata_username",
password = "your_earthdata_password",
collection_size = 0.02)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.