[GRASS-dev] ERROR grass addon v/r.surf.nnbathy using a lat/lon location

Roberto Marzocchi roberto.marzocchi at gmail.com
Thu Mar 29 06:26:22 PDT 2018


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 a 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 a 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.martin a gmail.com>:

> Hi,
>
> 2018-03-27 14:48 GMT+02:00 Roberto Marzocchi <roberto.marzocchi a 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
>
-------------- parte successiva --------------
Un allegato HTML รจ stato rimosso...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180329/926c9633/attachment.html>


More information about the grass-dev mailing list