Skip to content

Commit

Permalink
Add Hazard classmethod for loading xarray Datasets (#507)
Browse files Browse the repository at this point in the history
Add Hazard classmethod for loading xarray datasets

The method loads a consistent Hazard object from a raster dataset
that can be interpreted as 2D or 3D dataset with dimensions
"time", "latitude", and "longitude". It supports loading any file type
supported by xarray.

* Add classmethod `Hazard.from_raster_xarray`.
* Add two unit test cases.
* Add docstring/documentation

Co-authored-by: Chahan M. Kropf <[email protected]>
Co-authored-by: emanuel-schmid <[email protected]>
  • Loading branch information
3 people authored Oct 14, 2022
1 parent 7566391 commit e8b25f4
Show file tree
Hide file tree
Showing 2 changed files with 936 additions and 1 deletion.
Loading

0 comments on commit e8b25f4

Please sign in to comment.