Skip to content

Commit

Permalink
fix bounds bug
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbuntemeyer committed Jan 25, 2025
1 parent a54c90f commit b0f082f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cordex/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ def transform_bounds(
ds.cf["Y"].dims[0], ds.cf["X"].dims[0], bnds_dim
)

ds[ds.cf["longitude"].name].attrs["bounds"] = cf.LON_BOUNDS
ds[ds.cf["latitude"].name].attrs["bounds"] = cf.LAT_BOUNDS
ds[ds.cf["longitude"].name].attrs["bounds"] = trg_dims[0]
ds[ds.cf["latitude"].name].attrs["bounds"] = trg_dims[1]

return ds.assign_coords(
{
Expand Down

0 comments on commit b0f082f

Please sign in to comment.