-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve functionality of Hazard.from_raster_xarray (#589)
* Update Hazard.from_raster_xarray * Repeat single-valued coordinates/attributes for the number of events loaded. * Transform dates into ordinals instead of directly loading ordinals. * Update Hazard.from_raster_xarray * Optionally repeat 'frequency' data. * Set default 'fraction' to None, complying with the new __init__. * Add tests for repeating single-valued data. * Modify tests to check for correct fraction initialization. * Add `rechunk` parameter to `Hazard.from_raster_xarray` Update docstrings and tests. * Fix docstring rendering of `Hazard.from_raster_xarray` Move Notes below Parameters. * black is beautyful. Co-authored-by: Lukas Riedel <[email protected]> * superfluous, but well aligned Co-authored-by: emanuel-schmid <[email protected]> Co-authored-by: Emanuel Schmid <[email protected]>
- Loading branch information
1 parent
59c54fd
commit 7560bcc
Showing
2 changed files
with
162 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters