I have a large raster map (48.000 x 60.000) with about 250,000 patches with
different class values. Now I need to select on those patches in a list
(like patches 30, 100, 634 etc) and them export those selected patches.
I can select the desire patches using r.class. But, before I export the images,
I would like to change the region of the raster, because if I do this
each output image will be strongly smaller (like 1000x1000 cells).
I have a large raster map (48.000 x 60.000) with about 250,000 patches
with different class values. Now I need to select on those patches in a
list (like patches 30, 100, 634 etc) and them export those
selected patches.
I can select the desire patches using r.class. But, before I export the
images,
I would like to change the region of the raster, because if I do this
each output image will be strongly smaller (like 1000x1000 cells).
in a loop, r.reclass the individual patch (cat) number, so only that cat
is left in the reclassed map. Then use 'g.region zoom=reclassed_map' before
each export and then 'g.region rast=original_map' before the next reclass.