TransWikia.com

Raster Calculator results in NoData values, ArcMap

Geographic Information Systems Asked by Melpomeni_Zoka on June 6, 2021

I would like to compute the expression displayed in the image with the Raster Calculator tool by using the slope (degrees) derived from the SRTM 30m DEM data. However, it results in NoData values for some of the pixels. The problematic part of the formula that is responsible for the NoData values it seems to be the part surrounded by the red box. This is happening to pixels that have negative sinθ values. In particular, when I solely calculate the sin of the slope raster the output is correct and contains both positive and negative values. However,
when I use the power of 0.8 the negatives sinθ values lead to NoData values.

P.S. None of my DEM and thus slope pixels have NoData values.
I also try to convert my slope raster to unsigned bit and then try the calculations again (without using the Float() function), but still the NoData values were there.
The Power() function does not work as well.
enter image description here

One Answer

According to the Python help file: If both x and y are finite, x is negative, and y is not an integer then Power(x, y) is undefined, and results to NoData. As such, the x needs to be a positive integer if you want y to be a double.

Examples that I tried:

Power(Sin("%Slope_degrees_clipped (2)%"), 1.5) --> results in NoData values when the sinθ is negative and y is float/double

Power(Sin("%Slope_degrees_clipped (2)%"), 1.5) --> works fine when the sinθ is positive and y is float/double

Power(Sin("%Slope_degrees_clipped (2)%"), 2) --> works fine when sinθ is negative and y is integer.

I also tried it on Python and QGIS but still it does not work.

Answered by Melpomeni_Zoka on June 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP