Skip to content

Commit

Permalink
Use more robust identification of WGS84 grids
Browse files Browse the repository at this point in the history
  • Loading branch information
dnerini authored Oct 19, 2022
1 parent 371b604 commit 2ba2905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion topo_descriptors/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def scale_to_pixel(scales, dem_da):
check_dem(dem_da)
x_coords, y_coords = dem_da["x"].values, dem_da["y"].values
epsg_code = dem_da.attrs["crs"].lower()
if epsg_code == "epsg:4326":
if "epsg:4326" in epsg_code:
logger.warning(
f"Reprojecting coordinates from WGS84 to UTM to obtain units of meters"
)
Expand Down

0 comments on commit 2ba2905

Please sign in to comment.