Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hazard classmethod for loading xarray Datasets #507

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
4a9a520
Add Hazard classmethod for loading NetCDF file
peanutfun Jul 5, 2022
755f11e
Only display unknown coordinates in `from_raster_netcdf` error message
peanutfun Jul 6, 2022
525394b
Use CLIMADA utilities for converting datetime64
peanutfun Jul 6, 2022
17564d5
Read Hazard from datasets with varying dim/coord definitions
peanutfun Jul 6, 2022
cbc1dc5
Avoid redefining built-in `map`
peanutfun Jul 6, 2022
d90ca87
Add log messages to `Hazard.from_raster_netcdf`
peanutfun Jul 6, 2022
939968b
Extract dimension names from coordinates
peanutfun Jul 7, 2022
b110a94
Use lazy formatting for logger messages
peanutfun Jul 7, 2022
4283cf6
Merge branch 'develop' into 487-add-classmethod-to-hazard-for-reading…
peanutfun Jul 11, 2022
ab40d1a
Reorganize test_base_netcdf.py
peanutfun Jul 15, 2022
2a4283d
Consolidate tests for Hazard.intensity
peanutfun Jul 15, 2022
dac5dd5
Rename from_raster_netcdf to from_raster_xarray
peanutfun Jul 15, 2022
026a33f
Make `from_raster_xarray` read all Hazard data
peanutfun Jul 27, 2022
528b99e
Add more logger messages and update docstring
peanutfun Jul 27, 2022
d96a278
Remove 'fraction' parameter from 'from_raster_xarray'
peanutfun Jul 27, 2022
f817bca
Add examples for `from_raster_xarray`
peanutfun Jul 27, 2022
fb94fc6
Fix type hints in `from_raster_xarray`
peanutfun Jul 27, 2022
bda69a6
Apply suggestions from code review
peanutfun Jul 28, 2022
9c68a9e
Improve docstrings and simplify `from_raster_xarray`
peanutfun Jul 28, 2022
87033ea
Simplify `user_key` update
peanutfun Jul 28, 2022
abc9d32
Optimize storage in CSR matrix by setting NaNs to zero
peanutfun Jul 28, 2022
29b74f3
Make hazard type and unit required arguments
peanutfun Jul 29, 2022
7678d1f
Preprocess dict arguments to save indentation level
peanutfun Jul 29, 2022
c0fb24b
Let `to_csr_matrix` only take ndarrays as arguments
peanutfun Jul 29, 2022
b8c46a3
Do not hard-code coordinate keys
peanutfun Aug 3, 2022
7a9ea42
Remove superfluous newline in docstring
peanutfun Aug 3, 2022
b2eea56
Update docstring of `from_raster_xarray`
peanutfun Aug 4, 2022
1be9772
Update `Hazard.from_raster_xarray`
peanutfun Aug 5, 2022
ccec87f
Add CRS argument
peanutfun Aug 8, 2022
c19f9ea
Merge branch 'develop' into 487-add-classmethod-to-hazard-for-reading…
peanutfun Sep 29, 2022
07e8bf7
Fix bug where wrong Hazard attribute was set
peanutfun Oct 5, 2022
84b0795
Add test for crs parameter in from_raster_xarray
peanutfun Oct 6, 2022
a72112c
Update docstring of from_raster_xarray
peanutfun Oct 6, 2022
d777785
Add 'Test' prefix for test cases in test_base_xarray.py
peanutfun Oct 6, 2022
d36bcc2
Format test_base_xarray
peanutfun Oct 6, 2022
68c1459
Fix comment in from_raster_xarray
peanutfun Oct 6, 2022
2cffc9a
Merge branch 'develop' into 487-add-classmethod-to-hazard-for-reading…
emanuel-schmid Oct 7, 2022
1ff075d
Promote single-valued coordinates to dimensions
peanutfun Oct 14, 2022
1eea94c
Merge branch '487-add-classmethod-to-hazard-for-reading-raster-like-d…
peanutfun Oct 14, 2022
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
Loading