[GRASS-dev] new addon: v.faultdirections

Helmut Kudrnovsky hellik at web.de
Tue Nov 8 01:59:10 PST 2016


Moritz Lennert wrote
>>
>> but I get an error when using
>>
>> -a    Use absolute values in legend, instead of percentages
>>
>>   v.faultdirections -a map=test at user1 column=vazimuth
>> Traceback (most recent call last):
>>   File "C:\Users\hkmyr\AppData\Roaming\GRASS7\addons/scripts
>> /v.faultdirections.py", line 100, in 
> <module>
>>     sys.exit(main())
>>   File "C:\Users\hkmyr\AppData\Roaming\GRASS7\addons/scripts
>> /v.faultdirections.py", line 87, in main
>>     labelradii = [x for x in np.arange(0,
>> int(np.ceil(max(radii))), labelstep) if x > 0]
>> ZeroDivisionError: division by zero
>>
>>
> 
> This was due to the fact that in your example there are only very few 
> lines per direction. I believe I solved this issue in r69786.
> 
> Thanks for testing !

confirmed, it works now.




-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/new-addon-v-faultdirections-tp5294302p5294779.html
Sent from the Grass - Dev mailing list archive at Nabble.com.


More information about the grass-dev mailing list