[GRASS-dev] Unexpected EVI range from "i.vi"

Moritz Lennert mlennert at club.worldonline.be
Thu Jun 20 00:07:31 PDT 2013


On Wed, June 19, 2013 23:34, Nikos Alexandris wrote:
> Moritz Lennert wrote:
>
>> >> > g.region -pagc e=784935 n=2695215 rows=1 cols=1 res=30
>> > --------------------^^^^^^---^^^^^^^------^------^-----^^
>
>> >> > n=2695230
>> >> > s=2621340
>> >> > w=658560
>> >> > e=784950
>
>> > ---------vvvvv
>> >> > nsres=73890
>> >> > ewres=126390
>> > ---------^^^^^^
>
>> rows and cols has precedence over res, but res=30 plus -a still has an
>> effect, so you get an extension that is in multiples of 30, with a
>> resolution equal to the total extension, since you asked for one row and
>> one col.
>
> So, "e=784935" and "n=2695215" are set as requested but the "-a" flag
> cut's
> off a bit while aligning...

It doesn't cut off, but it extends the region until you hit a multiple of 30:

n=2695215 is extended northward to n=2695230
e=784935 is extended eastward to e=784950

Moritz



More information about the grass-dev mailing list