[GRASS-dev] t.rast.neighbors not working

Hi devs,

I'm working on temporal documentation replacing the example with the
future temporal dataset that I'm working on, so I'm testing more or
less all the command.

I'm not able to run t.rast.neighbors for this problem

t.rast.neighbors input=tempmean_monthly output=smooth_tempmean_monthly
base=tmean_smooth size=5 method=average nprocs=4
ERROR: Space time raster dataset <tempmean_monthly> is already in the
database. Use the overwrite flag.

I looked inside t.rast.neighbors source code and I found this line

new_sp = tgis.check_new_stds(input, "strds", dbif=dbif, overwrite=overwrite)

probably should be replaced with (I tried and it seems to work)

new_sp = tgis.check_new_stds(output, "strds", dbif=dbif, overwrite=overwrite)

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org

Hi Luca,
thanks for the report. Your solution is correct, the bug should be
fixed in r63184/trunk.

I will backport the changes to grass70 as well.

Best regards
Soeren

2014-11-27 11:41 GMT+01:00 Luca Delucchi <lucadeluge@gmail.com>:

Hi devs,

I'm working on temporal documentation replacing the example with the
future temporal dataset that I'm working on, so I'm testing more or
less all the command.

I'm not able to run t.rast.neighbors for this problem

t.rast.neighbors input=tempmean_monthly output=smooth_tempmean_monthly
base=tmean_smooth size=5 method=average nprocs=4
ERROR: Space time raster dataset <tempmean_monthly> is already in the
database. Use the overwrite flag.

I looked inside t.rast.neighbors source code and I found this line

new_sp = tgis.check_new_stds(input, "strds", dbif=dbif, overwrite=overwrite)

probably should be replaced with (I tried and it seems to work)

new_sp = tgis.check_new_stds(output, "strds", dbif=dbif, overwrite=overwrite)

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev