![]() ![]() Get or set basic parameters of SpatRasters. a correlation coefficient) to focal values for pairs of layersĬompute slope, aspect and other terrain characteristics from elevation dataĬompute viewshed (showing areas that are visible from a particular locationĬompute hill shade from slope and aspect layersĬompute global or local spatial autocorrelation Regression between layers for focal areasĪpply a function (e.g. Three dimensional (row, col, lyr) focal functionsįaster focal by using custom C++ functions Shortest distance considering cell-varying frictionĭirection (azimuth) to or from cells that are not NAįocal (neighborhood moving window) functions Shortest distance through adjacent grid cells ![]() Shortest distance to a cell that is not NA or to or from a vector object Identify cells that are adjacent to a set of cells of a SpatRaster Situation (spatial context) based methods At the bottom of this page there is a table that shows differences in the methods between the two packages.īelow is a list of some of the most important methods grouped by theme. terra has a very similar, but simpler, interface, and it is faster than raster. The terra package is conceived as a replacement of the raster package. Also, package developers should not directly access this pointer, as its user-interface is not stable. ![]() Generally, you should use writeRaster to save SpatRaster objects to disk (and pass a filename or cell values to cluster nodes). They cannot be recovered from a saved R session either or directly passed to nodes on a computer cluster. These classes hold a C++ pointer to the data "reference class" and that creates some limitations. There is also a SpatGraticule class to assist in adding a longitude/latitude lines and labels to a map with another coordinate reference system. Each sub-dataset is a SpatRaster with possibly many layers, and may, for example, represent different weather variables and SpatRasterCollection and SpatVectorCollection that are equivalent to lists of SpatRaster or SpatVector objects. SpatVector supports all types of geometric operations such as intersections.Īdditional classes include SpatExtent, which is used to define a spatial extent (bounding box) SpatRasterDataset, which represents a collection of sub-datasets for the same area. SpatRaster supports handling large raster files that cannot be loaded into memory local, focal, zonal, and global raster operations polygon, line and point to raster conversion integration with modeling methods to make spatial predictions and more. The package implements two main classes (data types): SpatRaster and SpatVector. In contrast, "vector" spatial data (points, lines, polygons) are typically used to represent discrete spatial entities, such as a road, country, or bus stop. Satellite images also have this data structure, and in that context grid cells are often referred to as pixels. Raster data divide space into rectangular grid cells and they are commonly used to represent spatially continuous phenomena, such as elevation or the weather. Terra provides methods to manipulate geographic (spatial) data in "raster" and "vector" form. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |