Subdataset and VRT connection strings.
sds(x, varname, driver, quote = TRUE)
Arguments
- x
character vector, of data source names (file paths, urls, database connection strings, or GDAL dsn)
- varname
named of variable in DSN
- driver
driver to use, e.g. "NETCDF", "HDF5"
- quote
wrap the core dsn in escaped double quotes, or not
Value
character string of the form "DRIVER:%s:varname"
Examples
f <- "myfile.nc"
sds(f, "variable", "NETCDF", quote = FALSE)
#> [1] "NETCDF:myfile.nc:variable"