You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow reading Hazard events that are not dates from xarray (#837)
* Allow reading Hazard events that are not dates from xarray
* Set default value of `Hazard.event_name` to empty string.
* Try interpreting values of the event coordinate as dates or ordinals
for default values of `Hazard.date`. If that fails, issue a warning
and set default values to zeros.
* Update tests.
* Try to read event coordinate as date
* Update climada/hazard/base.py
* Apply formatter to test_base_xarray.py
* Set default ordinal to 1, fix tests
* Fix linter warnings
* Switch back to class setup for xarray tests
* Clarify docstring of Hazard.from_xarray_raster
* Update CHANGELOG.md
* Update climada/hazard/base.py
---------
Co-authored-by: Chahan M. Kropf <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ Code freeze date: YYYY-MM-DD
20
20
- Update `CONTRIBUTING.md` to better explain types of contributions to this repository [#797](https://github.com/CLIMADA-project/climada_python/pull/797)
21
21
- The default tile layer in Exposures maps is not Stamen Terrain anymore, but [CartoDB Positron](https://github.com/CartoDB/basemap-styles). Affected methods are `climada.engine.Impact.plot_basemap_eai_exposure`,`climada.engine.Impact.plot_basemap_impact_exposure` and `climada.entity.Exposures.plot_basemap`. [#798](https://github.com/CLIMADA-project/climada_python/pull/798)
22
22
- Recommend using Mamba instead of Conda for installing CLIMADA [#809](https://github.com/CLIMADA-project/climada_python/pull/809)
23
+
-`Hazard.from_xarray_raster` now allows arbitrary values as 'event' coordinates [#837](https://github.com/CLIMADA-project/climada_python/pull/837)
0 commit comments