| vapour_sds | R Documentation |
A data frame of the subdatasets of one or more raster sources, one row for each
subdataset. This is the vectorised form of vapour_sds_names(), and it also
gives GDAL's description of each subdataset.
vapour_sds(x)
x |
one or more data source strings, filename, database connection string, or other URL |
A source with no subdatasets gives one row, in which subdataset is the source
itself and description is NA. So every source has at least one row, and
every value of subdataset is a data source that can be opened.
data frame with columns
the source, as given in x
the number of the subdataset within its source, counted from 1 (as used by the sds argument of other functions)
the data source string of the subdataset
GDAL's description of the subdataset, usually its dimensions, name and type
vapour_sds_names() vapour_raster_info()
tif <- system.file("extdata", "sst.tif", package = "vapour")
vapour_sds(tif)
f <- system.file("extdata/gdal", "sds.nc", package = "vapour")
## protect from error with netcdf problems
result <- try(vapour_sds(c(f, tif)), silent = TRUE)
if (!inherits(result, "try-error")) {
print(result)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.