Tuesday 18 April 2017

qgis - How to reclassify in Rastercalc?


I now need to reclassify, I'm using rastercalc... but I can't get the syntax right!!


I need that values >0 become 1


I found this example... eq( [relief]@1, [mask]@4, 150 )


so I tried: ( [raster A insularis_1]@1, > 0, 1) and I absolutely failed



Answer



You simply need to use following expression



raster A insularis_1@1 > 0


The expression means , set all values greater than 0 as 1 and others as 0.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...