We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60dc067 commit a0e02beCopy full SHA for a0e02be
climada/hazard/trop_cyclone/trop_cyclone_windfields.py
@@ -902,6 +902,11 @@ def _coriolis_parameter(lat: np.ndarray) -> np.ndarray:
902
cp : np.ndarray of same shape as input
903
Coriolis parameter.
904
"""
905
+ if not u_coord.check_if_geo_coords(lat, 0):
906
+ raise ValueError(
907
+ "Input lat and lon coordinates are not geographic "
908
+ "or have total extents > 180° for lat or > 360° for lon."
909
+ )
910
return 2 * V_ANG_EARTH * np.sin(np.radians(np.abs(lat)))
911
912
0 commit comments