Skip to content
Prev 3315 / 29559 Next

How to handle large negative numbers in GeoTIFF DEM?

x$band1[x$band1 <=-3.403e+38] <- NA

Use 0 instead of NA if you like, but zero might be a valid value in your 
case. You may need to be more flexible with the value used for 
comparing, so something like this should be safe

x$band1[x$band1 <= (-3.403e+37)] <- NA

HTH, Mike
Aubrey Moore wrote: