[GRASS-user] Is r.damflood is suitable for grass6.5

Dear Roberto,

I am trying to compile source code in Mingw environment for r.damflood. But I have a problem that some libary is missing in my environment. Can you please send me the .exe file by remaning as r.damflood.txt. Is it run succesfully in Grass6.5.

Thanks & Regards,

Swapan

Dear Roberto,

No I am not working on grass7. I use grass6.5 windows version. So for unix like flavour we use mingw open source. If possible please give me the dependent library & header where I can get the used function definition. If I get then I can try it for old raster library or merge the new library. I see your code actually some fucnction called here not defined in our library.

I change some portion like-

/module = G_define_module();
G_add_keyword((“raster”));
G_add_keyword(
(“dambreak”));
G_add_keyword(_(“model”));
module->description = _(“Estimate the area potentially inundated in case of dam
break”);
/

module = G_define_module();
module->keywords =(_(“raster,dambreak,model”));
module->description = _(“Estimate the area potentially inundated in case of dam break”);

please see the error for calling-

G_find_raster2
Rast_open_old
Rast_allocate_f_buf

etc.

I am C++ developer if get the new then can redesign the old.

Thanks & Regards,

Swapan

On Thu, Nov 8, 2012 at 2:00 PM, Roberto Marzocchi <roberto.marzocchi@gmail.com> wrote:

Dear Swapan,

I think that the actually code of r.damflood don’t work with grass 6.5 (I’m sure about grass6) because we used the new raster libraries of grass7.
We start the development in Grass 6.4.0 after we encountered a few libraries problem starting from Grass 6.4.1 so we carry on the development in grass7.
Moreover I never compile a C command in Mingw (I use normally linux), hence I am not sure to understand what you ask me.
Have you tried to compile the command in Grass 7?

Best regards,

Roberto

2012/11/8 SWAPAN GHOSH <swap.ghsh@gmail.com>

Dear Roberto,

I am trying to compile source code in Mingw environment for r.damflood. But I have a problem that some libary is missing in my environment. Can you please send me the .exe file by remaning as r.damflood.txt. Is it run succesfully in Grass6.5.

Thanks & Regards,

Swapan

Hi,

2012/11/8 SWAPAN GHOSH <swap.ghsh@gmail.com>:

I am trying to compile source code in Mingw environment for r.damflood. But
I have a problem that some libary is missing in my environment. Can you
please send me the .exe file by remaning as r.damflood.txt. Is it run
succesfully in Grass6.5.

all addons are automatically build for winGRASS. You can install them
from the GUI (Settings -> Addons -> Install). The binaries are
available at [1]. I didn't find r.damflood, just r.dam (which failed)
[2].

Martin

[1] http://wingrass.fsv.cvut.cz/grass65/addons/
[2] http://wingrass.fsv.cvut.cz/grass65/addons/logs/r.dam.log

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

On Thu, Nov 8, 2012 at 10:47 AM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2012/11/8 SWAPAN GHOSH <swap.ghsh@gmail.com>:

I am trying to compile source code in Mingw environment for r.damflood. But
I have a problem that some libary is missing in my environment. Can you
please send me the .exe file by remaning as r.damflood.txt. Is it run
succesfully in Grass6.5.

all addons are automatically build for winGRASS. You can install them
from the GUI (Settings -> Addons -> Install). The binaries are
available at [1]. I didn't find r.damflood,

that's only in GRASS 7.

just r.dam (which failed)

I have added the missing Makefile.

cheers
Markus

Hi,

r.dam is a simple bash script that is useful to create the data for r.damflood.
Unfortunately r.dam is written in the grass 6 style and is needed to convert it to use in grass 7, while r.damflood is written in C using the grass7 libraries [1] so you don’t find itr for grass6.5.

The error [2] depend on the absence of a makefile. I see that Markus add a makefile this morning ( I also try to add it), I think that now you can compile r.dam.
There is no description of r.dam, I will add as soon as possible.

Concerning r.damflood, you can find the codes in grass7/raster/r.damflood/ [1] and I think you can easily compile for Grass7. IYou cannot compile for grass6.5, it is need a correction of libraries. I’m not an expert about it. I did it manually to update r.damflood to grass7, but after we develop some new functionalities and perform the debug on the grass7 version of r.damflood, so I do not want to add the old code developed in for Grass 6.4 because I’m not sure about the correctness of it. We choose in fact to develop it only for grass7 and I think it is reasonable.

Roberto

2012/11/8 Martin Landa <landa.martin@gmail.com>

Hi,

2012/11/8 SWAPAN GHOSH <swap.ghsh@gmail.com>:

I am trying to compile source code in Mingw environment for r.damflood. But
I have a problem that some libary is missing in my environment. Can you
please send me the .exe file by remaning as r.damflood.txt. Is it run
succesfully in Grass6.5.

all addons are automatically build for winGRASS. You can install them
from the GUI (Settings → Addons → Install). The binaries are
available at [1]. I didn’t find r.damflood, just r.dam (which failed)
[2].

Martin

[1] http://wingrass.fsv.cvut.cz/grass65/addons/
[2] http://wingrass.fsv.cvut.cz/grass65/addons/logs/r.dam.log


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

No I am not working on grass7. I use grass6.5 windows version. So for unix

like flavour we use mingw open >source. If possible please give me the
dependent library & header where I can get the used function >definition. If
I get then I can try it for old raster library or merge the new library. I
see your code actually >some fucnction called here not defined in our
library.

the prebuilt addons for wingrass7 are here:

http://wingrass.fsv.cvut.cz/grass70/addons/

and can be installed with:

Martin Landa
all addons are automatically build for winGRASS. You can install them
from the GUI (Settings -> Addons -> Install).

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Is-r-damflood-is-suitable-for-grass6-5-tp5014741p5014799.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Thanks to all for helping me. Later I build Grass7 developement environment. At that time I have not much time for research. I can solve my requirement using r.lake and r.hazard.flood command. I have also found another solution using psmap flooding example scripts.

Thanks & Regards,

Swapan

On Thu, Nov 8, 2012 at 4:08 PM, Roberto Marzocchi <roberto.marzocchi@gmail.com> wrote:

Hi,

r.dam is a simple bash script that is useful to create the data for r.damflood.
Unfortunately r.dam is written in the grass 6 style and is needed to convert it to use in grass 7, while r.damflood is written in C using the grass7 libraries [1] so you don’t find itr for grass6.5.

The error [2] depend on the absence of a makefile. I see that Markus add a makefile this morning ( I also try to add it), I think that now you can compile r.dam.
There is no description of r.dam, I will add as soon as possible.

Concerning r.damflood, you can find the codes in grass7/raster/r.damflood/ [1] and I think you can easily compile for Grass7. IYou cannot compile for grass6.5, it is need a correction of libraries. I’m not an expert about it. I did it manually to update r.damflood to grass7, but after we develop some new functionalities and perform the debug on the grass7 version of r.damflood, so I do not want to add the old code developed in for Grass 6.4 because I’m not sure about the correctness of it. We choose in fact to develop it only for grass7 and I think it is reasonable.

Roberto

2012/11/8 Martin Landa <landa.martin@gmail.com>

Hi,

2012/11/8 SWAPAN GHOSH <swap.ghsh@gmail.com>:

I am trying to compile source code in Mingw environment for r.damflood. But
I have a problem that some libary is missing in my environment. Can you
please send me the .exe file by remaning as r.damflood.txt. Is it run
succesfully in Grass6.5.

all addons are automatically build for winGRASS. You can install them
from the GUI (Settings → Addons → Install). The binaries are
available at [1]. I didn’t find r.damflood, just r.dam (which failed)
[2].

Martin

[1] http://wingrass.fsv.cvut.cz/grass65/addons/
[2] http://wingrass.fsv.cvut.cz/grass65/addons/logs/r.dam.log


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

On Fri, Nov 9, 2012 at 6:27 AM, SWAPAN GHOSH <swap.ghsh@gmail.com> wrote:

Thanks to all for helping me. Later I build Grass7 developement environment. At that time I have not much time for research. I can solve my requirement using r.lake and r.hazard.flood command.

I would like to point you out that r.hazard.flood follows a completely different rationale than r.damflood. You can find the details in:

Manfreda, S., M. Di Leo, A. Sole, Detection of Flood Prone Areas using Digital Elevation Models, Journal of Hydrologic Engineering, (10.1061/(ASCE)HE.1943-5584.0000367), 2011. [pdf]

Di Leo, M., S. Manfreda, M. Fiorentino, An automated procedure for the detection of flood prone areas: r.hazard.flood,Geomatics Workbooks n. 10 - “FOSS4G-it: Trento 2011”, 83-89, 2011 [Link].

Anyhow a comparison between the two approaches IMHO would be worthwhile and I would really appreciate your feedback, since r.hazard.flood is based on an experimental procedure we developed.

Thank you and best regards,

madi


Margherita DI LEO

Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

Dear madi,

Ok, I know it but according to our requirement we need some customization. We are also focus on psmap flooding scripts.

Thanks & Regards,

Swapan

On Sat, Nov 10, 2012 at 1:15 AM, Margherita Di Leo <diregola@gmail.com> wrote:

Hi,

On Fri, Nov 9, 2012 at 6:27 AM, SWAPAN GHOSH <swap.ghsh@gmail.com> wrote:

Thanks to all for helping me. Later I build Grass7 developement environment. At that time I have not much time for research. I can solve my requirement using r.lake and r.hazard.flood command.

I would like to point you out that r.hazard.flood follows a completely different rationale than r.damflood. You can find the details in:

Manfreda, S., M. Di Leo, A. Sole, Detection of Flood Prone Areas using Digital Elevation Models, Journal of Hydrologic Engineering, (10.1061/(ASCE)HE.1943-5584.0000367), 2011. [pdf]

Di Leo, M., S. Manfreda, M. Fiorentino, An automated procedure for the detection of flood prone areas: r.hazard.flood,Geomatics Workbooks n. 10 - “FOSS4G-it: Trento 2011”, 83-89, 2011 [Link].

Anyhow a comparison between the two approaches IMHO would be worthwhile and I would really appreciate your feedback, since r.hazard.flood is based on an experimental procedure we developed.

Thank you and best regards,

madi


Margherita DI LEO

Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu