[GRASSLIST:10274] Re: problem to adjust a lat/lon region

Glynn Clements glynn at gclements.plus.com
Mon Feb 13 10:35:24 EST 2006


Otto Dassau wrote:

> I would like to adjust a lat/lon region with g.region, but is doesn't seem to 
> work and behaves strange and/or I probably don't know how to make it right. 
> 
> What I am trying to get is a region with 16200 cols and rows within  
> n=90, s=-90, w=0 and e=180.

> c) does not work, but I do not know why.
> 
> g.region res=0:00:41.1 n=90 s=-90 w=0 e=180 -ap
> ERROR: Invalid region: Illegal latitude for North
> g.region res=0:00:41 n=90 s=-90 w=0 e=180 -ap
> ERROR: Invalid region: Illegal latitude for North

The test makes no allowance for rounding error; if the aligned north
value is 90.0000000001, you will get an error.

You could try using e.g. 89.9999999 for the north/south values to
avoid this issue.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list