I have three questions:
1- Is it possible to define active region spatial resolution by selecting an image instead of putting values?
2- What is done with -a flag?
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)
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)
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.
About which raster modules respect or ignore the current region, you could read some mails from Spetember last year, starting from here:
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
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 list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
This mail was received via Mail-SeCure System.
On Thu, Feb 3, 2011 at 9:57 AM, katrin eggert
<katrineggert1980@gmail.com> wrote:
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@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.
2011/2/3 katrin eggert <katrineggert1980@gmail.com>:
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)?