File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
climada/hazard/trop_cyclone Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,8 @@ def from_tracks(
241241 farther away from the center than according to the recorded radius of
242242 maximum winds (RMW). Default: False
243243 cyclostrophic : bool, optional
244- If True, do not apply the influence of the Coriolis force (set the Coriolis terms to 0).
244+ If True, do not apply the influence of the Coriolis force (set the Coriolis
245+ terms to 0).
245246 Default: True for H10 model, False otherwise.
246247
247248 ignore_distance_to_coast : boolean, optional
Original file line number Diff line number Diff line change @@ -236,11 +236,11 @@ def _compute_angular_windspeeds_h10(
236236 si_track : xr .Dataset ,
237237 d_centr : np .ndarray ,
238238 close_centr_msk : np .ndarray ,
239- cyclostrophic : bool = True ,
240239 gradient_to_surface_winds : float = DEF_GRADIENT_TO_SURFACE_WINDS ,
241240 rho_air_const : float = DEF_RHO_AIR ,
242241 vmax_from_cen : bool = True ,
243242 vmax_in_brackets : bool = False ,
243+ ** kwargs ,
244244):
245245 """Compute (absolute) angular wind speeds according to the Holland et al. 2010 model
246246
@@ -280,7 +280,7 @@ def _compute_angular_windspeeds_h10(
280280 ndarray of shape (npositions, ncentroids)
281281 containing the magnitude of the angular windspeed per track position per centroid location
282282 """
283- if not cyclostrophic :
283+ if not kwargs . get ( " cyclostrophic" , True ) :
284284 LOGGER .warning (
285285 "The function _compute_angular_windspeeds_h10 was called with parameter "
286286 '"cyclostrophic" equal to false. Please be aware that this setting is ignored as the'
You can’t perform that action at this time.
0 commit comments