2

I need to perform a simple calculation in ArcGIS 10.1 Raster Calculator. I am using a raster layer that contains many cells that have a value of zero. I need to exclude these cells in the expression because they are skewing the results.

Here is the simple raster calculator expression that I am using: "rho"* 1005*(((("raster")*.02)-272.15)-"temp")/30)

I need to add to this expression so that only values greater than zero in the raster layer "raster" are consider in the expression.

2
  • 1
    Generate Exclude Area (Data Management) resources.arcgis.com/en/help/main/10.2/index.html#/… should be able to remove zero values or exclude from other raster processing
    – Mapperz
    Jan 10, 2015 at 16:33
  • 1
    You may use "con" to ignore nodata value to process e.g. Con(<condition>, <true_expression>, <false_expression>)
    – SIslam
    Jan 10, 2015 at 18:23

1 Answer 1

1

You could try setting your Zero values to NULL or "NODATA". Then as I have understood it, NODATA values will not get processed. You can use the SetNull tool.

2
  • 1
    Thank you so much. This is exactly what I was looking for. I used the expression: SetNull("raster" == 0, "raster") in the raster calculator, and it created a new raster layer of the cells that had values.
    – user40332
    Jan 10, 2015 at 19:34
  • If my answer solved your problem you should tick it as answered. This tells people who come looking with similar questions that a solution was given.
    – Hornbydd
    Jan 10, 2015 at 19:42

Your Answer

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