![]() The variable name, such as 'tasmax' or 'pr'. If x represents a NetCDF file, the following additional variable is recognized: Ignored when the file provides a CRS description that can be interpreted. ![]() To indicate the number of header rows on non-standard ascii files (rarely useful use with caution)Ĭrs: character. The default is TRUE, in which case a raster attribute table is created for files that have one 'raster' and netcdf format files are always read with native drivers. ![]() If TRUE, reading and writing of IDRISI, BIL, BSQ, BIP, SAGA, and Arc ASCII files is done with native (raster package) drivers, rather then via GDAL. Subdataset number for a file with subdatasets If x is a filename, the following additional variables are recognized: If not NULL, arguments xmn, xmx, ymn, ymx and crs (unless template is an Extent object) are ignored Raster* or Extent object used to set the extent (and CRS in case of a Raster* object). If this argument is used, arguments ncols and nrows are ignored Numeric vector of length 1 or 2 to set the resolution (see res). Also see under Details if x is a character (filename) 90, "+proj=longlat +datum=WGS84" is used. 360 and the y coordinates are within -90. If this argument is missing, and the x coordinates are within -360. PROJ.4 type description of a Coordinate Reference System (map projection). If present, the arguments xmn, xmx, ymn and ynx are ignoredĬharacter or object of class CRS. If TRUE, the cell values of ' x' are copied to the RasterLayer object that is returned An empty RasterLayer (no associated values) is returned if layer=0 The layer (variable) to use in a multi-layer file, or the layer to extract from a RasterStack/Brick or SpatialPixelsDataFrame or SpatialGridDataFrame. ![]() Supported file types are the 'native' raster package format and those that can be read by GDAL Raster(x, xmn=0, xmx=1, ymn=0, ymx=1, crs="", template=NULL)įilename (character), Extent, Raster*, sf, SpatialPixels*, SpatialGrid*, object, 'image', matrix, im, or missing. You can assign new values with setValues and with replacement.įor an overview of the functions in the raster package have a look here: raster-package. You can access cell-values with getValues, extract and related functions. when a RasterLayer is created from a file, it does (initially) not contain any cell (pixel) values in (RAM) memory, it only has the parameters that describe the RasterLayer. RasterLayer objects can be created from scratch, a file, an Extent object, a matrix, an 'image' object, or from a Raster*, Spatial*, im (spatstat) asc, kasc (adehabitat*), grf (geoR) or kde object. Raster: Create a RasterLayer object Description ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |