Quantcast
Channel: Active questions tagged raster-calculator - Geographic Information Systems Stack Exchange
Viewing all articles
Browse latest Browse all 190

Using Raster calculator to extract all cells that have one of number of values

$
0
0

I'm using QGIS 3. I have a raster layer for Koppen Geiger climate which has one band with values ranging from 1, 30. I want to make a new raster with only cells which have a value of the climates I am looking at, for instance; 10, 12, 13, 17, 19 to 24, and 28 to 30. I would like to keep the cells's values if possible in the new raster but if needs to be a binary result (if the value is 10, 12, 13, etc then the result is one, if not then zero) then that can work.

I'm assuming the way to do this is with the raster calculator and I've managed to get a result with two of the classes at a time with ("Beck_KG_V1_present_0p0083@1" = 29 OR ”Beck_KG_V1_present_0p0083@1" = 30 ) *"Beck_KG_V1_present_0p0083@1" but I know this isn't the right way to go about it.


Viewing all articles
Browse latest Browse all 190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>