RasterList-Package: RasterList: A package for Rasters Where Cells are Generic...

RasterList-PackageR Documentation

RasterList: A package for Rasters Where Cells are Generic Objects

Description

The aim of this package is to develop a way to make some complex operations on each cells of a Raster Maps. Generally raster contains numeric values in each cells and in each band. Sometimes complex operation required the definition of particular object, in case such operation should be executed for each cell of a raster map, it becomes challanging. Then RasterList-package makes these operations easy to be implented with few lines of codes.

Details

The RasterList-class is a S4 class that inherits the RasterLayer-class and it an added slot called list. The list slot is a list object of so many elements how many are the cells of the inherited RasterLayer-class class, so that there is bijective corrensponce between a raster cell and a list element. The RasterList package provides three categories of important functions:

rasterList: it is the constructor of a RasterList-class object from a generic object, it also transforms a RasterList-class into another one throungh a function argument.

rasterListFun: it is a function that constructs a particular RasterList-class object in which the objects are function-type.

RasterListApply: it is a function that allows to operate among two or more RasterList-class objects defined in the same spatial extent through a generic function fun(x,y,...) where x and y are each cell/element of two RasterList-class objects given as arguments x and y of RasterListApply.

Some examples, concerning the fitting of a probability function for each cell of a stack (RasterStack-class object) of precipitation time-series or the estimation of soil water retention curve for each cell of a raster map, are shown throughout the package manual. The precipitation example dataset in raster format were extracted by the CHIRPS database:

Funk, Chris, Pete Peterson, Martin Landsfeld, Diego Pedreros, James Verdin, Shraddhanand Shukla, Gregory Husak, James Rowland, Laura Harrison, Andrew Hoell and Joel Michaelsen. "The climate hazards infrared precipitation with stations - a new environmental record for monitoring extremes". Scientific Data 2, 150066. doi:10.1038/sdata.2015.66 2015 , https://chc.ucsb.edu/data/chirps.

The package-provided datasets shall be only used as example datasets.

The development of this package has been sponosored by ACEWATER2 and "Water for Growth and Poverty Reduction in the Mekrou" projects of the Joint Research Centre of the Europan Commission (http://aquaknow.jrc.ec.europa.eu).


ecor/rasterList documentation built on Aug. 20, 2023, 12:41 p.m.