Ok. I do a commit with some changes to nnbathy.py command: - correction in read region - correction due to the problem of v.out.ascii -r - correction suggested by Luca for string concatenation
A problem remains open when using v.surf.nnbathy from GUI because the name of the vector map with @mapset seem to be a problem... Fetching data... WARNING: Illegal filename <ztd_temp@meteo>. Character <@> not allowed. Traceback (most recent call last): File "/home/roberto/.grass7/addons/scripts/v.surf.nnbathy", line 115, in <module> main() File "/home/roberto/.grass7/addons/scripts/v.surf.nnbathy", line 106, in main obj = Nnbathy_vector(options) File "/home/roberto/.grass7/addons/etc/v.surf.nnbathy/nnba thy.py", line 128, in __init__ self._load(options) File "/home/roberto/.grass7/addons/etc/v.surf.nnbathy/nnba thy.py", line 171, in _load grass.fatal_error("Invalid input: %s" % e) AttributeError: 'module' object has no attribute 'fatal_error' Removing the mapset from input name (ztd_temp@meteo --> ztd_temp) the module works correctly. I do not know how to solve this problem. Perhaps it has an easy solution for you. All the best, R 2018-03-27 21:11 GMT+02:00 Martin Landa <landa.mar...@gmail.com>: > Hi, > > 2018-03-27 14:48 GMT+02:00 Roberto Marzocchi <roberto.marzoc...@gmail.com > >: > > fout.write(parts[0]+' '+parts[1]+' '+parts[3]) --> is part of the > > actual command. > > > > I can do debug, but I would like to be cautious in completly rewriting > the > > module without the endorsement of the authors. > > please feel free to provide patch and attach it to a reported ticket. > Martin > > -- > Martin Landa > http://geo.fsv.cvut.cz/gwiki/Landa > http://gismentors.cz/mentors/landa >
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev