[GRASS-dev] Resolved - Error in GRASS GIS 7.0 database

Anna Petrášová kratochanna at gmail.com
Tue Nov 25 10:49:26 PST 2014


On Tue, Nov 25, 2014 at 11:25 AM, Martin Landa <landa.martin at gmail.com>
wrote:

> Hi,
>
> 2014-11-25 17:06 GMT+01:00 Erick Opiyo <osgis.dev at gmail.com>:
>
> > If I set overwrite=True, then it would make my script overwrite an
> already
> > processed images, I'm executing the script a numbers of times to match my
> > machine CPU load average and the overwrite check, makes sure that a
> > subsequent process skips an already processes image from a previously
> > executed process.
>
> well, but it's related to the error
>
> ERROR: output map <MOD13Q1.h16v05.2000081.EVI.
> Filtered.tiff> exists
>

if you want to ignore it, you can catch the exception:

from grass.exceptions import CalledModuleError
...

try:
    # call mapcalc
except CalledModuleError:
    pass

Anna

> ...
>
> Martin
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.eu/mentors/landa
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20141125/881570e8/attachment-0001.html>


More information about the grass-dev mailing list