From 2ba29058f9e2a86e9c5891cceced414263ea19c3 Mon Sep 17 00:00:00 2001 From: Daniele Nerini Date: Wed, 19 Oct 2022 16:17:44 +0200 Subject: [PATCH] Use more robust identification of WGS84 grids --- topo_descriptors/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topo_descriptors/helpers.py b/topo_descriptors/helpers.py index 4d09038..edae040 100755 --- a/topo_descriptors/helpers.py +++ b/topo_descriptors/helpers.py @@ -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" )