ignorevalue: Extract and assign 'nodata' value of raster images.

Description Usage Arguments Details Value Author(s) Examples

Description

Ignored values (aka 'nodata') are implemented via NA values, and are optional for raster images in memory. However, to avoid ambiguity for data storage, it is desirable to specify ignored value. “ENVI .hdr Labelled Raster” supports ‘nodata’ by means of “data ignore value” field in the header file.

Usage

1
2
3
4
5
ignorevalue(obj)
ursa_nodata(obj)

ignorevalue(obj) <- value
ursa_nodata(obj) <- value

Arguments

obj

ursaRaster object.

value

Integer of numeric of length one. Ignored (‘nodata’) value.

Details

ursa_nodata is synonym to ignorevalue for both Extract and Replace methods.

The ‘nodata’ value of raster image obj is specified in the item obj$con$nodata.

If values of raster image are in memory then replace function ignorevalue<- also changes ‘nodata’ values to NA values.

Value

Extract function ignorevalue returns value of $con$nodata item of ursaRaster object.

Replace function ignorevalue<- returns ursaRaster with modified $con$nodata item.

Author(s)

Nikita Platonov platonov@sevin.ru

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12

ursa documentation built on May 23, 2021, 1:06 a.m.