vrt | R Documentation |
Simple metadata augmentation for raster sources.
vrt(x, extent = NULL, projection = NULL) ## Default S3 method: vrt(x, extent = NULL, projection = NULL)
x |
character string, file, url, GDAL dsn |
extent |
numeric 'c(xmin, xmax, ymin, ymax)' |
projection |
character wkt, proj, epsg code |
Simple function to add either or both of a raster source extent and projection string.
The attributes from 'extent' as 'source_extent' and/or 'projection' as 'source_projection' are passed directly down to GDAL, via
the gdalio_data()
function, which hands them on to vapour::vapour_warp_raster()
arguments 'source_extent' and 'source_wkt'
respectively.
lightly classed character vector, with "vrt_simple", "character"
vrt("myfile.nc") vrt("myfile.nc", extent = c(-180, 180, -90, 90)) str(vrt("myfile.nc", extent = c(-180, 180, -90, 90), projection = 4326))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.