edl_as_s3: Replace https URLs with S3 URIs

View source: R/edl_s3_token.R

edl_as_s3R Documentation

Replace https URLs with S3 URIs

Description

Replace https URLs with S3 URIs

Usage

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

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.

Value

a URI that strips basename and protocol and appends prefix

Examples

href <- lpdacc_example_url()
edl_as_s3(href)

earthdatalogin documentation built on May 29, 2024, 3:36 a.m.