vapour (version 0.5.5)

vapour_sds_names: GDAL raster subdatasets (variables)

Description

A subdataset is a collection abstraction for a number of variables within a single GDAL source. If there's only one variable the datasource and the variable have the same data source string. If there is more than one the subdatasets have the form DRIVER:"datasourcename":varname. Each subdataset name can stand in place of a data source name that has only one variable, so we always treat a source as a subdataset, even if there's only one.

Usage

vapour_sds_names(x)

Arguments

x

a data source string, filename, database connection string, Thredds or other URL

Value

list of character vectors, see Details

Details

Returns a list of datasource and subdataset. In the case of a normal data source, with no subdatasets the value of both entries is the datasource.

Examples

Run this code
# NOT RUN {
f <- system.file("extdata", "sst.tif", package = "vapour")
vapour_sds_names(f)
# }

Run the code above in your browser using DataCamp Workspace