I have a raster ranging from 0 to 80,000. I want to invert this, such that 80000 becomes 0.0000125.

When I use a raster calculator as (1/x) it returns 1s where the were values and blank where there was a zero. While for zero its correct the other values are wrong.

I tried this option Here 1.0 - (float(x) / 80000.), all the values are converted well only that they are scaled. I dont want this scaling, I need the exact inverses how do i go about this?

  • 1
    Is your raster a floating raster?
    – Vale
    May 12, 2016 at 9:11
  • The raster is 16 unsigned integer May 12, 2016 at 9:23

1 Answer 1


Your raster needs to be "a floating raster" to store decimal values. Transform your integer raster into a floating one, then run the raster calculator again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.