Skip to content

Commit

Permalink
fix mismatch x,y between spectral and cloudmask cube
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasK committed Nov 22, 2023
1 parent 3eabe4e commit aebdab6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions earthdaily/earthdatastore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,8 @@ def datacube(
intersects=intersects,
bbox=bbox,
groupby_date="max",
# epsg=xr_datacube.rio.crs.to_epsg(),
# resolution=xr_datacube.rio.resolution()[0],
prefer_alternate="download",
geobox=xr_datacube.odc.geobox
)
xr_datacube["time"] = xr_datacube.time.astype("M8[s]")
acm_datacube["time"] = acm_datacube.time.astype("M8[s]")
Expand Down Expand Up @@ -484,7 +483,7 @@ def datacube(
)
if (
preload_mask
and psutil.virtual_memory().available > clouds_datacube.nbytes
and psutil.virtual_memory().available > clouds_datacube.nbytes and mask_statistics is True
):
clouds_datacube = clouds_datacube.load()
xr_datacube = xr.merge(
Expand Down

0 comments on commit aebdab6

Please sign in to comment.