Hi,


Have you looked at GRASS GIS and its interface with R spgrass6.

There are flow models included.

Also, R hydromap
http://hydromad.catchment.org/

Otherwise, you could see raster package and extract function.


Best,

Mathieu

2011/12/21 Jorge Cabrera <jjcabrera20@yahoo.com.mx>

> Hello people in the list,
>
> I am new to R and I am trying to simulate a simple flood model using a
> digital elevation model and water height data.
> The idea is to find the neighbor pixels of a river and assign to them the
> values of the DEM, comparing them with the water height data, and were it
> exceeds the height, this pixel is starting to get flooded, the flood
> continues to its neighbors taking into account the height from the DEM.
> These happens until the water height is again below the DEM.
> I need some idea to start, and mainly how to loop inside
> a SpatialGridDataFrame or SpatialPixelDataFrame and be able to compare
> between different SpatialGridDataFrames in my case DEM and Water Height.
>
> I hope the explanation is clear
>
> Thanks in advance for your help
>
> Best,
>
> Jorge
> PD: I am a windows user R version 2.14
>        [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>

	[[alternative HTML version deleted]]

