[GRASS-user] 2 questions about usage of g.region

katrin eggert katrineggert1980 at gmail.com
Thu Feb 3 09:57:55 EST 2011


Thanks Micha and Hermann for your feedback.
Just one very last question: in a Python script how can I make an variabel
to equal to an image spatial resolution? (I mean, How can I retrieve an
image spatial resolution)?
THanks

Best regards,
Kat

2011/2/3 Micha Silver <micha at arava.co.il>

>  katrin eggert wrote:
>
> HEy
>
> I have three questions:
> 1- Is it possible to define active region spatial resolution by selecting
> an image instead of putting values?
>
> Using a grass raster, yes. g.region rast=....
>
>
>
> 2- What is done with -a flag?
>
>
> If you have , i.e. a resolution of 5 meters and the E-W extent is 99
> meters, then with the -a flag the region will be reset to 100 m. Without the
> -a flag, the resolution will be recalculated so that it fits into the
> extents. So in the above case, without -a, the E-W res will be changed to
> 4.95
>
>
>
> 3- Just to confirm this, when an image is imported with r.in.gdal it is
> kept with its original resolution right? it only gets the active region
> spatial resolution when I process it right (e.g. mapcalc or somethingg)
>
>
>
> AFAIK, yes.
>
>
> Thanks
> Kat
>
> This mail was received via Mail-SeCure System.
>
> ------------------------------
>
> _______________________________________________
> grass-user mailing listgrass-user at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/grass-user
>
> This mail was received via Mail-SeCure System.
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110203/c1a3af0e/attachment.html


More information about the grass-user mailing list