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 get_return_period and get_return_level #65

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

stellema
Copy link
Member

Rename return_period => get_return_period (useful variable name). get_return_period and get_return_level work for multi-dim data and for stationary or nonstationary GEV parameters. The latter will have an extra dimension that depends on a covariate. Also, add corresponding unit tests.

Add unpack_gev_params, which is pretty much shape, loc, scale = params but works if params has other dimensions or is nonstationary (returns shape, loc, scale as a function of a covariate).

Rename `return_period` => `get_return_period` (useful variable name). `get_return_period` and `get_return_level` work for muti-dim data and for stationionary or nonstationary GEV parameters. The latter will just have an extra dimension that depends on a covariate. Also add corresponding unit tests.

Add `unpack_gev_params`, which is pretty much `shape, loc, scale = params` but works if params has other dimensions or is nonstationary (returns shape, loc, scale as a function of a covariate).
@stellema stellema merged commit ff81e7d into AusClimateService:master Jun 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant