[GRASS-user] Subset several bands of data at one go

2011-03-08 Thread Chethan S
Hi all!

As you know landsat data has separate files for different bands. Creating a
subset is a wise option to work on region of our interest. Therefore, I used
this method to subset my image -
d.zoom || g.region
g.region -p
r.mapcalc *subset*=original
as suggested in
http://osgeo-org.1803224.n2.nabble.com/Raster-Map-subset-td4523291.html#a4526819
.

But with this I can subset one band data at a time. Is it somehow possible
to use i.group and region definition to obtain subsets of all bands?
Scripting might be an answer but I have no much idea about it.

Thanks and regards,

Chethan S.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Subset several bands of data at one go

2011-03-08 Thread Helmut Kudrnovsky

   But with this I can subset one band data at a time. Is it somehow possible
to use i.group and region definition to obtain subsets of all bands?
Scripting might be an answer but I have no much idea about it.

what about working with different computational regions?

http://grass.osgeo.org/grass64/manuals/html64_user/rasterintro.html :

[...]
As a general rule in GRASS:

*  Raster output maps have their bounds and resolution equal to those
of the current computational region.

*  Raster input maps are automatically cropped/padded and rescaled
(using nearest-neighbour resampling) to match the current region.

*  Raster input maps are automatically masked if a raster map named
 MASK exists. The MASK is only applied when reading maps
 from the disk.
[...]

so you can do calculations/run modules in different computational region without
extracting of many subsets of your data before.

best regards
Helmut


___
WEB.DE DSL Doppel-Flat ab 19,99 euro;/mtl.! Jetzt mit 
gratis Handy-Flat! http://produkte.web.de/go/DSL_Doppel_Flatrate/2


smime.p7s
Description: S/MIME Cryptographic Signature
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user