Displaying 1 result from an estimated 1 matches for "demonotonicizes".
2012 Feb 03
3
[fields] image.plot abends with NAs in image.plot.info
...ave all NAs--call those "trivial"). The non-trivial
layers have a problem: data was logged so that values sum. (I.e.,
instead of logging value=a in gridcell [i,j] and value=b in the "next"
non-NA gridcell[i+m,j+n], value(gridcell[i+m,j+n]) = a+b.) I wrote an
R routine that "demonotonicizes" (since all data >= 0) the source
data, writing to a new "fixed" or "target" file with the same
structure as the source. As part of the routine I check that each
target layer contains values s.t.
* ? target values v: (v > 0) || is.na(v)
* ?i,j: is.na(value(source[i,j...