[GRASS-user] r.hazard.flood

Anna Petrášová kratochanna at gmail.com
Sun Mar 13 14:06:54 PDT 2016


Hi,

On Sun, Mar 13, 2016 at 4:57 PM, edgar mlowe <mloweedgar0 at gmail.com> wrote:

> Am working on developing flood hazard map using the module r.hazard.flood.
> Whenever I try to run the module I get the following error
>
> (Sun Mar 13 23:43:19
> 2016)
> r.hazard.flood map=floodanalysis.alpha at edgar flood=flood
> mti=MTI
> Traceback (most recent call last):
>   File "/home/edgar/.grass6/addons/r.hazard.flood", line
> 145, in <module>
>     sys.exit(main())
>   File "/home/edgar/.grass6/addons/r.hazard.flood", line 80,
> in main
>     resolution = (float(dict_region['nsres']) +
> float(dict_region['ewres']))/2
> ValueError: invalid literal for float(): 0:00:00.09
> (Sun Mar 13 23:43:20 2016) Command finished (0 sec)
>
> Please if I may get more help on how to use r.hazard.flood to produce
> flood hazard maps. thanks in advance
>

it looks like you are using it in an unprojected location
(latitude-longitude),
try to reproject your data into a location with suitable projection.
However, the module should be able to deal with this somehow (either enable
it or finish with appropriate error message), so you should create a ticket
for this bug.

Best,

Anna


>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160313/93563fda/attachment.html>


More information about the grass-user mailing list