[GRASS-user] os.environ['GRASS_REGION'] Error

Javier Martínez-López javi.martinez.lopez at gmail.com
Thu Jun 5 09:42:42 PDT 2014


Solved! Margherita pointed out that the original script was messing up
the values of the projection because in one of the testing versions I
was using integer values instead of characters for the region
resolution parameter, and since then the script started giving this
error, which I did not noticed. That is why it was running in one
machine and not in the other one...

This is the test script about parallel computing using different
regions [1]. I will test it and let you know if it works with a large
segmentation processing job.

Thank you very much!

Cheers,


Javier

[1] https://github.com/javimarlop/eHabpy/blob/master/pas/parallel_grass_example.py


On Thu, Jun 5, 2014 at 4:46 PM, Markus Neteler <neteler at osgeo.org> wrote:
> On Thu, Jun 5, 2014 at 10:27 AM, Javier Martínez-López
> <javi.martinez.lopez at gmail.com> wrote:
>> Hello all,
>>
>> trying to create a temporary region within a python GRASS script using:
>>
>> os.environ['GRASS_REGION'] = grass.region_env(res=150)
>>
>> I get the following errors on a CentOS server:
>>
>> ERROR: Syntax error in cell header
>> ERROR: Field <projection> missing
>
> What does
> g.region -p
>
> say in that location?
>
> best,
> Markus


More information about the grass-user mailing list