# Urban Flood Risk Model Outputs

**URL:** <https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698>\
**Category:** Software Support\
**Tags:** urban-flood\
**Created:** [February 11, 2021, 4:22pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698 "2021-02-11T16:22:29Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![rxchelzhxng](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@rxchelzhxng](https://community.naturalcapitalalliance.org/u/rxchelzhxng)\
**Post date:** [February 11, 2021, 4:22pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/1 "2021-02-11T16:22:30Z")

</div>

Hello there,

I am currently trying to use the urban flood risk model to evaluate potential damage costs to built infrastructure and run-off retention. I ran the model using the sample dataset Invest provides alongside an arbitrary value of 17 mm for rainfall depth however I am having some trouble interpreting and locating the outputs.

I am trying to find the values to generate a runoff retention map (m^3) like the following:

 ![invest_map](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/2/28f0688cba03f7df3f2d51e6a7dd7beace701044.jpeg) .There seems to be a database file but there are only 5 values inside that correspond to the flood risk service outputs not the rest of the runoff retention values. Where are the other values found to generate this map? Are they post-processed or QGIS is able to read it?

On another note, I tried to open the runoff\_retention\_m3 raster in QGIS hoping to get a map with the classified runoff retention values.

I have included a zip file to the model’s outputs that I am getting. [invest\_test\_outputs.zip](https://community.naturalcapitalalliance.org/uploads/short-url/6p4XHtYzEb5toDRYKtSasMEy1OI.zip) (198.9 KB)

Any help on where the rest of those runoff retention values are or post-processing insights would be appreciated!

Thanks,

Rachel

---

<div class="post-metadata">

**Author:** ![esoth](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@esoth](https://community.naturalcapitalalliance.org/u/esoth)\
**Post date:** [February 11, 2021, 5:12pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/2 "2021-02-11T17:12:07Z")

</div>

Hi @rxchelzhxng,  
The output folder that you uploaded has everything I would expect (except for the log file, did you take that out?) The files `Runoff_retention_finished.tif` (unitless index), `Runoff_retention_finished_m3.tif` (cubic meters), and `Q_mm_finished.tif` (millimeters) correspond to the runoff retention map on the left of that image. The `flood_risk_service_finished.shp` file has the summaries per sub-watershed (the sample watersheds data `watersheds.gpkg` only has one watershed, so there is only one shape in the output). Please see the [user’s guide](https://storage.googleapis.com/releases.naturalcapitalproject.org/invest-userguide/latest/urban_flood_mitigation.html#interpreting-outputs) for reference.

Let me know if that helps. Are you not able to open the files in QGIS?

---

<div class="post-metadata">

**Author:** ![rxchelzhxng](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@rxchelzhxng](https://community.naturalcapitalalliance.org/u/rxchelzhxng)\
**Post date:** [February 11, 2021, 6:09pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/3 "2021-02-11T18:09:32Z")

</div>

Hi,

I am able to open the files in QGIS however I am not seeing as many output runoff retention values as the image on the left. Although that could just be because of the sample data. To make sure we are interpreting the same image, I’ve included a screenshot of what I see in QGIS for the runoff\_retention\_finished\_m3.tif.

 ![runoff_retention_m3](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/1/11ea14eb18c9e65141df70a347b258ac75a325a1.png)

As for the log file, I don’t have one that is generated when I run the model. Do you know what could be the issue to that?

Thanks once again!

---

<div class="post-metadata">

**Author:** ![rxchelzhxng](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@rxchelzhxng](https://community.naturalcapitalalliance.org/u/rxchelzhxng)\
**Post date:** [February 11, 2021, 6:50pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/4 "2021-02-11T18:50:05Z")

</div>

I also did want to ask where the geographical region is for the sample dataset that is provided? If there is a geoJSON file with the coordinates of the boundary/land use land cover that would be great.

---

<div class="post-metadata">

**Author:** ![esoth](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@esoth](https://community.naturalcapitalalliance.org/u/esoth)\
**Post date:** [February 11, 2021, 7:47pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/5 "2021-02-11T19:47:55Z")

</div>

Hi @rxchelzhxng,  
The sample data covers a different area than the maps in the original image you attached, so it’s going to look different. Do you mean that there’s less variation in the runoff retention values?

The sample dataset location is near San Mateo, California. You can check this by overlaying it with a global map in QGIS. If you want a vector polygon outlining the LULC map area, there are tools in your GIS software to do that. For example in QGIS, Processing \> Layer tools \> Extract layer extent.

---

<div class="post-metadata">

**Author:** ![rxchelzhxng](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@rxchelzhxng](https://community.naturalcapitalalliance.org/u/rxchelzhxng)\
**Post date:** [February 12, 2021, 4:47pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/6 "2021-02-12T16:47:27Z")

</div>

Hi,

Yes there is less variation but that could just be because of the sample dataset and rainfall depth I specified.

I did try to extract the layer extent and it worked, thank you.

As for another question I had, was the image on the left from my initial post processed in QGIS to only show a blue band? Or was there additional post-processing done in Python?

Thanks,

Rachel

---

<div class="post-metadata">

**Author:** ![esoth](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@esoth](https://community.naturalcapitalalliance.org/u/esoth)\
**Post date:** [February 12, 2021, 7:42pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/7 "2021-02-12T19:42:46Z")

</div>

Hi @rxchelzhxng,  
Yes, the sample dataset is relatively simple. There is only one soil group in the area and only a few different curve number values for the landcover codes in the area. So there are relatively few different values that will be in the result.

I’m not quite sure what you mean about the blue band, the model outputs only have one band to start with. It looks like the _runoff\_retention\_m3_ output. I don’t think any post processing was done aside from coloring it and adding the key.

---

<div class="post-metadata">

**Author:** ![rxchelzhxng](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@rxchelzhxng](https://community.naturalcapitalalliance.org/u/rxchelzhxng)\
**Post date:** [February 12, 2021, 9:37pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/8 "2021-02-12T21:37:22Z")

</div>

Okay that clears things up, thank you!

---

<div class="post-metadata">

**Author:** ![rxchelzhxng](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@rxchelzhxng](https://community.naturalcapitalalliance.org/u/rxchelzhxng)\
**Post date:** [March 3, 2021, 10:07pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/9 "2021-03-03T22:07:00Z")

</div>

Hi there!

I am opening this thread back up since I have now ran the sample data with a larger rainfall depth of 33.8mm for the urban flood risk mitigation model. I am seeing some strange and high values for the results with the **serv\_blt**.

In the documentation it says that this value is in m^3 but I am not sure how that’s gotten if

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/2/257770e703d2a865538cfbdf646c8158aa4bac7d.png)  
_affected.build_ is in $ and the sum of _R\_m3i_ is in m^3. Could you clarify the units on this output as well as possibly why the resulting value is in the trillions?

Another question I had was how is the spatial resolution being considered in the calculation? I noticed that for **R\_m3i** it is the pixel area \* runoff retention per pixel \* rainfall depth.

I have attached my output files (though for some reason the log file is still not being outputted). [sample\_outputs.zip](https://community.naturalcapitalalliance.org/uploads/short-url/7FsIpRHFF0vViimZ9O19ybSOM38.zip) (196.7 KB)

Thanks so much 🙂

---

<div class="post-metadata">

**Author:** ![esoth](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@esoth](https://community.naturalcapitalalliance.org/u/esoth)\
**Post date:** [March 8, 2021, 5:24pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/10 "2021-03-08T17:24:24Z")

</div>

Hi @rxchelzhxng,  
Sorry for the confusion! _Service.built_ is in $ \* m^3:

_Affected.build_ ($) \* _R\_m3_(m^3)

This is a kind of strange unit because it is an _indicator_ of the value, not an exact measure. You can think of it like a unitless index. See the discussion here: [Service.built - UFRM model](https://community.naturalcapitalalliance.org/t/service-built-ufrm-model/1538)  
The documentation is incorrect there where it says just m^3. I’ll correct that.

Regarding the spatial resolution, the two raster inputs are aligned and resampled if needed so that they both have the same pixel size as the original landcover raster. You can see these aligned rasters in the output `temp_working_dir_not_for_humans` folder. The “runoff retention per pixel” really means “pixel-wise runoff retention”: This is a unitless ratio for each pixel representing the fraction of water on that pixel that’s retained. So the spatial resolution does not affect the values of the output, just the precision:  
_pixel area_ (m^2) \* _runoff retention_ (unitless) \* _rainfall depth_ (mm) \* 0.001 (mm/m) = _retention volume_ (m^3)

I hope that helps!

---

<div class="post-metadata">

**Author:** ![rxchelzhxng](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@rxchelzhxng](https://community.naturalcapitalalliance.org/u/rxchelzhxng)\
**Post date:** [March 8, 2021, 10:37pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/11 "2021-03-08T22:37:29Z")

</div>

Thanks for clarifying the units on _Service.built_! I did want to clarify that there was no correlation in the calculations between _affected\_build_ and runoff retention/volume? Ideally, we would want a correlation between the two to determine which buildings are exposed to flooding.

I am now wondering if the model can identify which buildings will be affected due to flooding since we know that not all buildings will be prone to flooding eg. those that are on high elevation areas/mountains. Currently, my calculation seems to assume that all buildings in this watershed will flood since I have only one ‘Type’ and ‘Damage’ in the Damage.csv table.

Are there any approaches that consider certain buildings/houses will flood versus others? Initial thoughts are adding a DEM (Digital elevation model) or a shapefile within the watershed for flood-prone areas?

---

<div class="post-metadata">

**Author:** ![antobaro](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@antobaro](https://community.naturalcapitalalliance.org/u/antobaro)\
**Post date:** [February 25, 2022, 3:58pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/12 "2022-02-25T15:58:05Z")

</div>

Hi, I post here given the title “model output”.  
I have a strange result from my modeling (at least for me), specifically, the output rasters provide values (retention, etc) even of areas outside the watershed that I have entered in shape format.  
What kind of operation does it perform? How should I consider the values obtained in the area not covered by the watershed?

Thank you,  
Antonio

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/6/6a2daf764f477f5533e56f4142416fb79ab54277.jpeg)

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [February 28, 2022, 9:06pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/13 "2022-02-28T21:06:00Z")

</div>

Hi @antobaro ,

The AOI Watersheds vector is only used for summarizing outputs, so whatever pixels are outside of the area covered by your watershed vector are not reflected in the summary statistics in the output vector. If you would like these pixel values to be included in the summary watershed vector, then you will want to add some geometry to the vector that covers those regions of your study area.

The specific operations performed are all summarizing various raster outputs per feature, and are [described in the user’s guide](https://storage.googleapis.com/releases.naturalcapitalproject.org/invest-userguide/latest/urban_flood_mitigation.html#interpreting-outputs).

Does that help?  
James

---

<div class="post-metadata">

**Author:** ![antobaro](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@antobaro](https://community.naturalcapitalalliance.org/u/antobaro)\
**Post date:** [March 1, 2022, 4:11pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/14 "2022-03-01T16:11:00Z")

</div>

Hi @jdouglass,  
yes understood. I will use the sub-watershed shape that covers the entire study area.

Many thanks,  
Antonio

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/8/8d95591aa074da87ea0fdd61ca47c1c3c0588aa7.png) [@system](https://community.naturalcapitalalliance.org/u/system)\
**Post date:** [March 8, 2022, 4:11pm UTC](https://community.naturalcapitalalliance.org/t/urban-flood-risk-model-outputs/1698/15 "2022-03-08T16:11:51Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
