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 a733e8e commit 685c241Copy full SHA for 685c241
climada/util/coordinates.py
@@ -1246,9 +1246,14 @@ def match_centroids(
1246
try:
1247
if not equal_crs(coord_gdf.crs, centroids.crs):
1248
raise ValueError("Set hazard and GeoDataFrame to same CRS first!")
1249
- if coord_gdf.crs is None or centroids.crs is None:
+ if coord_gdf.crs is None:
1250
raise ValueError(
1251
- "Please provide coordinate GeoDataFrame and Hazard "
+ "Please provide a coord_gdf (coordinate GeoDataFrame)"
1252
+ "object with a valid crs attribute."
1253
+ )
1254
+ if centroids.crs is None :
1255
+ raise ValueError(
1256
+ "Please provide centroids "
1257
"object with a valid crs attribute."
1258
)
1259
except AttributeError as exc:
0 commit comments