MESS returns INF values, should be NA?
plantarum opened this issue · comments
Hi,
The mess
raster returns Inf
values for raster cells that are empty in the input SpatRaster
. I'm not sure, but I think these should be NA
values. If they were, it would be more straightforward to exclude them from subsequent analysis and display.
For example, from the example in the docs for mess
:
mss[[10]]
class : SpatRaster
dimensions : 192, 186, 1 (nrow, ncol, nlyr)
resolution : 0.5, 0.5 (x, y)
extent : -125, -32, -56, 40 (xmin, xmax, ymin, ymax)
coord. ref. : lon/lat WGS 84 (EPSG:4326)
source(s) : memory
name : mess
min value : -287.7551
max value : Inf
Thanks,
Tyler
Thanks. I now see:
minmax(mss[[10]])
# mess
#min -287.75510
#max 72.41379