edl_as_s3 {earthdatalogin}R 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)

[Package earthdatalogin version 0.0.2 Index]