ItĬan do either nearest neighbor assignments (for categorical data) orīilinear interpolation (for numerical data). In those cases, the resample method can be used. Step (e.g. each side 2 times smaller or larger), but in some cases thatįor example, you may need nearly the same cell size, while shifting theĬell centers. It is possible to specify different (dis)aggregation factors in the x and y direction.aggregate anddisaggregate`Īre the best methods when adjusting cells size only, with an integer In the case of`aggregate, you need to specify a function determining what to do with the grouped cell values (e.g.mean ). Objects with use (dis)aggregate or resample.ĭisaggregate} allow for changing the resolution (cell size) of a ```Raster*`` object. If this is not the case you can first adjust one of the Raster* Origin (such that their cells neatly fit into a single larger raster). The input objects must have the same resolution and The merge method lets you merge 2 or more Raster* objects into a RasterLayer such that the can be used together in other methods. The purpose of this could be toĬreate a new RasterLayer with the same Extent of another larger In contrast, extend adds new rowsĪnd/or columns with NA values. Trim crops a RasterLayer by removing the outer rows and columns To plot a RasterLayer and then use drawExtent to visuallyĭetermine the new extent (bounding box) to provide to the crop method. Providing an extent object or another spatial object from which anĮxtent can be extracted (objects from classes deriving from Raster andįrom Spatial in the sp package). The crop method lets you take a geographic There are several methods that deal with modifying the spatial extent of (e.g. integer or real values), and a to indicate whether existing files Relevant when writing values to a file: the file format, datatype The “…” argument allows for setting additional arguments that are Raster object to be created would be too large to hold memory it is If you do not specify aįilename, the default action for the method is to return a raster The default filename is an empty character “”. Objects or other arguments), followed by a filename=”” and “…” More arguments specific to the method (either additional RasterLayer Is typically ‘x’ or ‘object’ and can be a RasterLayer, or, in mostĬases, a RasterStack or RasterBrick. The high-level methods have some arguments in common. Normally find in a GIS program that supports raster data. ‘High level’ refers to methods that you would Several ‘high level’ methods (functions) have been implemented for
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |