1

I want to subtract a topography raster with a depth raster. The problem is the two rasters have different cell size. The topography raster have a square cell size of 5, 5 while the depth raster have a rectangular cell size of 10, 3.

How the Raster Calculator work with that way? Does it give accurate result?

6

when to rasters have different cell sizes, the raster calculator will internally resample the rasters in order to have pixels of the same size. You can select the type of resampling in the environment settings of your geoprocessing tool, using:

  • minimum

  • maximum

  • same as one layer

  • custom size

In your case, you don't have a pixel size that is a multiple of the other cell size. Therefore the resampling will be lossy if you use a pixel size from your layers.

If you want full control on how the substraction will be done, I recommend that you first resample each image with one by one pixels (chosing bilinear or cubic interpolation to avoid "stair like" artefacts and snapping the extent of the first raster to the second raster). You can store those rasters in_memory if they are not too big to avoid duplicating your data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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