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

WIP: Introduce a second version of the Holland 2010 model #846

Merged
merged 17 commits into from
Jun 21, 2024
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
add description of returned array for angular windspeed functions
  • Loading branch information
Thomas Roosli committed May 21, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 91adf6529d08d34cbd05d5325c3977ef9dfe7acb
4 changes: 4 additions & 0 deletions climada/hazard/trop_cyclone.py
Original file line number Diff line number Diff line change
@@ -1188,6 +1188,7 @@ def compute_angular_windspeeds(
Returns
-------
ndarray of shape (npositions, ncentroids)
containing the magnitude of the angular windspeed per track position per centroid location
"""
model_kwargs = {} if model_kwargs is None else model_kwargs
compute_funs = {
@@ -1243,6 +1244,7 @@ def _compute_angular_windspeeds_h1980(
Returns
-------
ndarray of shape (npositions, ncentroids)
containing the magnitude of the angular windspeed per track position per centroid location
"""
_vgrad(si_track, gradient_to_surface_winds)
_rho_air(si_track, rho_air_const)
@@ -1286,6 +1288,7 @@ def _compute_angular_windspeeds_h08(
Returns
-------
ndarray of shape (npositions, ncentroids)
containing the magnitude of the angular windspeed per track position per centroid location
"""
_rho_air(si_track, rho_air_const)
_bs_holland_2008(si_track, gradient_to_surface_winds=gradient_to_surface_winds)
@@ -1337,6 +1340,7 @@ def _compute_angular_windspeeds_h10(
Returns
-------
ndarray of shape (npositions, ncentroids)
containing the magnitude of the angular windspeed per track position per centroid location
"""
_rho_air(si_track, rho_air_const)
if vmax_from_cen: