Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.
Note: This addon document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade your GRASS GIS installation, and read the current addon manual page.
The category values can be specified as:
The extent of the new raster can be changed with flag -c to fit the extent of the extracted data. When using flag -s output raster is a reclassified input raster (see r.reclass for details).
g.region raster=zipcodes -p r.info zipcodes -rg
... rows=1350 cols=1500 min=27511 max=27610 ...Now we extract 2 categories and automatically adjust the raster extent to fit the extracted data.
r.extract input=zipcodes output=selected_zipcodes cats=27605,27601 -c r.info selected_zipcodes -rg
... rows=404 cols=377 min=27601 max=27605 ...
Available at: r.extract source code (history)
Latest change: Monday Jun 28 07:54:09 2021 in commit: 1cfc0af029a35a5d6c7dae5ca7204d0eb85dbc55
Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.
Note: This addon document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade your GRASS GIS installation, and read the current addon manual page.
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
© 2003-2023 GRASS Development Team, GRASS GIS 7.8.9dev Reference Manual