Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasK committed Nov 22, 2024
2 parents 414b82a + aa165be commit ceba5ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion earthdaily/accessor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def _auto_mapper(self):
"vh": "VH",
"hh": "HH",
"hv": "HV",
}
}

params = {}
data_vars = list(
Expand Down
4 changes: 2 additions & 2 deletions earthdaily/earthdatastore/cube_utils/_zonal.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ def _loop_time_chunks(dataset, method, smart_load, time_chunks):
# create the WKT geom
if isinstance(buffer_meters, float | int):
geoms.geometry = geoms["geometry_original"]

if geoms.crs.to_epsg() != 4326:
geoms = geoms.to_crs("EPSG:4326")
geometry = xr.DataArray(
geoms.iloc[list(f-1)].geometry.apply(lambda x: x.wkt).values,
geoms.iloc[list(f - 1)].geometry.apply(lambda x: x.wkt).values,
dims=["feature"],
coords={"feature": zs.feature.values},
)
Expand Down

0 comments on commit ceba5ba

Please sign in to comment.