Skip to content

Strange sharp increase in return periods and flood_depth rf_glofas module #197

Description

@luseverin

I am looking into floods in Sudan and wanted to plot the maximum return period of the discharge of the entire domain over time. However, I observed a very sharp "step-function-like" increase in the return periods from 0 to 10000 years that suspiciously happen at the start of the month (01-09-2024).

Image

However, when looking at the max discharge over time it does not look strange:

Image

This does seem to lead to an increase in the flood depth at that time:

Image

If you look at maps of the max return periods over the domain, it seems that the 10000 RP only occur over parts of the domain:

Image

while the discharge map still looks fine:

Image

Next, I show the snapshots of the maps of the return period between July 31st and August 1st. We can see that the 10000 years RP emerge over part of the domain:

Image Image

@peanutfun any idea of what could be going on?

Code to reproduce the bug:


from climada_petals.hazard.rf_glofas import RiverFloodInundation
from climada_petals.hazard.rf_glofas.transform_ops import download_glofas_discharge

# download glofas discharge
iso3 = "SDN"
start_date = "2024-07-10"
end_date = "2024-09-30"
dates = pd.date_range(start_date, end_date)
query_reanal = {
    "product": "historical",
    "countries": [iso3],
    "dates": dates_event, 
}

rea_discharge_ds = download_glofas_discharge(**query_reanal)

# get return periods
rf = RiverFloodInundation()
return_periods = rf.return_period(rea_discharge_ds)

# compute flood maps
flood_ds = rf.compute(rea_discharge_ds)

# plot max return periods for the region vs time
return_periods.max(dim=("latitude", "longitude")).plot()

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions