Skip to content

Commit fb3cf7e

Browse files
committed
Update error message in coord_on_land
1 parent d3aea1e commit fb3cf7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

climada/util/coordinates.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,10 @@ def coord_on_land(lat, lon, land_geom=None):
710710
if lat.size == 0:
711711
return np.empty((0,), dtype=bool)
712712
if not check_if_geo_coords(lat, lon):
713-
raise ValueError("Input lat and lon coordinates are not geographic.")
713+
raise ValueError(
714+
"Input lat and lon coordinates are not geographic "
715+
"or have total extents > 180° for lat or > 360° for lon."
716+
)
714717
delta_deg = 1
715718
lons = lon.copy()
716719
if land_geom is None:

0 commit comments

Comments
 (0)