grainchanger (version 0.2.0)

winmove-class: An S4 class for use with winmove functions (extends RasterLayer)

Description

An S4 class for use with winmove functions (extends RasterLayer). Objects will need to be set to this class in order to be used with the inbuilt winmove functions (e.g. mean, prop, var_range, shdi, shei)

Arguments

Slots

Slots for RasterLayer and RasterBrick objects

title:

Character

file:

Object of class ".RasterFile"

data:

Object of class ".SingleLayerData" or ".MultipleLayerData"

history:

To record processing history, not yet in use

legend:

Object of class .RasterLegend, Default legend. Should store preferences for plotting. Not yet implemented except that it stores the color table of images, if available

extent:

Object of Extent-class

ncols:

Integer

nrows:

Integer

crs:

Object of class "CRS", i.e. the coordinate reference system. In Spatial* objects this slot is called 'proj4string'

Examples

Run this code
# NOT RUN {
# load required data
data(cat_ls)

# set \code{cat_ls} to object of class winmove
new("winmove", cat_ls)

# }

Run the code above in your browser using DataCamp Workspace