How to recode raster layer in GRASS GIS?
I create a small add-on ( r.recode.attr) that let you reclass/recode a raster layer based on values in a csv (comma separated text) file. The csv file should include one column with the raster values and one or more columns with the reclassification values. For each of these columns a new map will be created.
How to reclassify a raster in QGIS-r.recode?
I have a raster that I want to reclassify and I’m using GRASS r.recode from within QGIS v.2.4.0. The rules file I am using has this content: The raster I have has a maximum value of 515 and according to the rules file, it should be reclassified as 5 but the range in the output raster from r.recode is [1,4].
What’s the maximum raster value for r.recode?
The raster I have has a maximum value of 515 and according to the rules file, it should be reclassified as 5 but the range in the output raster from r.recode is [1,4]. Any ideas as to what is wrong with my rules file?
How are the rules defined in r.recode?
Rules are defined in one of these formats: r.recode is loosely based on r.reclass and uses the GRASS Reclass Library to convert the rasters. It has routines for converting to every possible combination of raster (eg. CELL to DCELL, DCELL to FCELL, etc).
How do I get grass to work in QGIS?
To launch GRASS from within QGIS, you need to activate it as with any other plugin. First, open a new QGIS project. In the Plugin Manager, enable GRASS in the list: The GRASS toolbar will appear: Before you can use GRASS, you need to create a mapset.
What can you do with GRASS GIS plugin?
The GRASS plugin provides access to GRASS GIS databases and functionalities (see GRASS-PROJECT in Literature and Web References ). This includes visualizing GRASS raster and vector layers, digitizing vector layers, editing vector attributes, creating new vector layers and analysing GRASS 2-D and 3-D data with more than 400 GRASS modules.
How to add raster layer to QGIS map?
Load the srtm_41_19.tif dataset (found under exercise_data/raster/SRTM/) into the QGIS map as usual, using QGIS’ Add Raster Layer tool. Re-project it using GDAL Warp tool ( Raster ‣ Projections ‣ Warp (Reproject) ), setting it up as shown: