Commit 769cdd2
Separate Hazard xarray reader into its own module (#1063)
* Move Hazard xarray reader and tests into separate module
* Deprecate `Hazard.from_raster_xarray_file`
* Make `Hazard.from_raster_xarray` handle files.
* Update tests
* Fix linter issues
* Update docstrings, docs, tests, and CHANGELOG.md
* Avoid .values accessor of DataArray
---------
Co-authored-by: emanuel-schmid <[email protected]>1 parent 355f4da commit 769cdd2
File tree
6 files changed
+1123
-953
lines changed- climada/hazard
- test
- doc/api/climada
6 files changed
+1123
-953
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
0 commit comments