Skip to content

Commit

Permalink
BUG: Ensure that the order of dims is always y, x. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Jan 8, 2024
1 parent 3e71572 commit c6a6d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py3dep/py3dep.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def add_elevation(
bounds = shapely_box(*ds_bounds).buffer(3 * resolution, join_style=2, cap_style=2)
bounds = geoutils.geometry_reproject(bounds, crs_proj, 4326)

dims_order = tuple(d for d in ds.dims if d in (y_dim, x_dim))
dims_order = (y_dim, x_dim)
elev = get_dem(bounds.bounds, resolution).transpose(*dims_order)
if ds_crs != elev.rio.crs:
elev = elev.rio.reproject(ds_crs)
Expand Down

0 comments on commit c6a6d3a

Please sign in to comment.