Learn R Programming

earthdatalogin (version 0.0.2)

edl_as_s3: Replace https URLs with S3 URIs

Description

Replace https URLs with S3 URIs

Usage

edl_as_s3(href, prefix = "s3://")

Value

a URI that strips basename and protocol and appends prefix

Arguments

href

a https URL from an EarthData Cloud address

prefix

the preferred s3 prefix, e.g. s3:// (understood by gdalcubes), or /vsis3, for terra/stars/sf or other GDAL-based interfaces.

Examples

Run this code
href <- lpdacc_example_url()
edl_as_s3(href)

Run the code above in your browser using DataLab