Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions climada/hazard/storm_europe.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,15 @@
+ run_datetime.strftime("%Y%m%d%H")
)

# Starting with eccodes 2.28 the name of the data variable in `stacked` is
# [i10fg](https://codes.ecmwf.int/grib/param-db/228029).
# Before, it used to be the less precise
# [gust](https://codes.ecmwf.int/grib/param-db/260065)
[data_variable] = list(stacked)

Check warning on line 558 in climada/hazard/storm_europe.py

View check run for this annotation

Jenkins - WCR / Code Coverage

Not covered line

Line 558 is not covered by tests

# Create Hazard
haz = cls(
intensity=sparse.csr_matrix(stacked["gust"].T),
intensity=sparse.csr_matrix(stacked[data_variable].T),
centroids=cls._centroids_from_nc(nc_centroids_file),
event_id=event_id,
date=date,
Expand Down Expand Up @@ -1069,7 +1075,7 @@
if haz_model == "cosmo1e_file":
haz_model = "C1E"
full_model_name_temp = "COSMO-1E"
if haz_model == "cosmo2e_file":
else: # if haz_model == "cosmo2e_file":
haz_model = "C2E"
full_model_name_temp = "COSMO-2E"
haz_file_name = (
Expand Down
6 changes: 3 additions & 3 deletions requirements/env_climada.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ channels:
dependencies:
- bottleneck>=1.4
- cartopy>=0.23
- cfgrib>=0.9.9,<0.9.10 # 0.9.10 cannot read the icon_grib files from https://opendata.dwd.de
- cfgrib>=0.9.9
- contextily>=1.6
- dask>=2024.5
- eccodes>=2.27,<2.28 # 2.28 changed some labels, in particular: gust -> i20fg
- eccodes>=2.27
- gdal>=3.6
- geopandas>=0.14
- geopandas>=0.14,<1.0 # geopandas 1.0 does not depend on fiona anymore, hence fiona would need to be added as dependency
- h5py>=3.8
- haversine>=2.8
- matplotlib-base>=3.9
Expand Down
Loading