[GRASS-dev] ganim troubles in latest cvs

Michael Barton michael.barton at asu.edu
Sun Sep 30 23:34:59 EDT 2007


Glynn,

I am really bad at regexp. Can you suggest how to redo this so as to permit
decimals? I'm pretty sure that it would fix a problem reported by Hamish a
few weeks back that was baffling. I'm currently on the road and cannot
commit to the CVS, but could do so when I get back if need be.

Michael


On 9/30/07 9:53 AM, "Glynn Clements" <glynn at gclements.plus.com> wrote:

> 
> Michael Barton wrote:
> 
>> I haven't updated in a few days but don't have a problem. Have you run
>> g.region to see what your resolution is? The res=0.0 is the problem. It is
>> getting this value from running g.region previously in your mapset,
>> returning rows, columns, and res.
> 
> GmAnim::main has:
> 
>     regexp {nsres= *([0-9]+)} $region dummy oldres1
>     regexp {ewres= *([0-9]+)} $region dummy oldres2
> 
> This isn't going to work if your resolution is less than one unit,
> e.g. lat/lon regions.
> 
> The regexp needs to allow for a decimal point.

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton





More information about the grass-dev mailing list