[GRASS-dev] new addon: v.faultdirections
Moritz Lennert
mlennert at club.worldonline.be
Sun Nov 6 04:51:46 PST 2016
Le Sat, 5 Nov 2016 14:37:22 -0700 (MST),
Helmut Kudrnovsky <hellik at web.de> a écrit :
> Hi Moritz,
>
>
> Moritz Lennert wrote
> > Dear all,
> >
> > As a result of some work with a student, I've just committed a
> > small and very simple addon that takes azimuths of lines from the
> > attribute table and draws a polar bar frequency plot in order to be
> > able to visually determine the dominant direction(s).
> >
> > As this is generally used for geological faults, I called it
> > v.faultdirections.
> >
> > It is really in a very simple and basic state, but I thought that
> > I'd better upload it before I forget it. Hope it might be useful to
> > some. If anyone wants to work on it, please feel free...
>
> just wanted to test it on windows, but see:
>
> https://wingrass.fsv.cvut.cz/grass73/x86_64/addons/grass-7.3.svn/logs/v.faultdirections.log
>
> [snip]
> Traceback (most recent call last):
> File
> "C:/Users/landa/grass_packager/grass73/x86_64/addons/v.faultdirections/scripts/v.faultdirections.py",
> line 50, in <module>
> import matplotlib.pyplot as plt
> File
> "C:\OSGeo4W64\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\pyplot.py",
> line 98, in <module>
> _backend_mod, new_figure_manager, draw_if_interactive, _show =
> pylab_setup()
> File
> "C:\OSGeo4W64\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\backends\__init__.py",
> line 28, in pylab_setup
> globals(),locals(),[backend_name],0)
> File
> "C:\OSGeo4W64\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\backends\backend_qt4agg.py",
> line 13, in <module>
> from backend_qt4 import QtCore, QtGui, FigureManagerQT,
> FigureCanvasQT,\ File
> "C:\OSGeo4W64\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\backends\backend_qt4.py",
> line 25, in <module>
> from qt4_compat import QtCore, QtGui, _getSaveFileName,
> __version__ File
> "C:\OSGeo4W64\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\backends\qt4_compat.py",
> line 36, in <module>
> import sip
> ImportError: No module named sip
> [snip]
>
> maybe some issue with the matplotlib backend?
>
> see
>
> https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.width.funct/r.width.funct.py#L46
> https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.hypso/r.hypso.py#L52
>
> where I've added some lines that it works also on windows.
Thanks Helmut ! I've just committed the same. Could you try if that
makes it work ?
Moritz
More information about the grass-dev
mailing list