Skip to content

Commit

Permalink
nit changes done.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabhicusp committed Nov 22, 2023
1 parent ffc2817 commit 7bd0f5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@ ds = xarray.open_dataset(
)
```

```python
ic = ee.ImageCollection('ECMWF/ERA5_LAND/HOURLY').filterDate('1992-10-05', '1993-03-31')
leg1 = ee.Geometry.BBox(113.33, -43.63, 153.56, -10.66)
ds = xarray.open_dataset(
ic,
engine='ee',
projection=ic.first().select(0).projection(),
geometry=leg1
)
```

Open multiple ImageCollections into one `xarray.Dataset`, all with the same projection:

```python
Expand Down
1 change: 1 addition & 0 deletions xee/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ def __init__(self, variable_name: str, ee_store: EarthEngineStore):

x_size = int(np.round((x_max - x_min) / np.abs(self.store.scale_x)))
y_size = int(np.round((y_max - y_min) / np.abs(self.store.scale_y)))

self.shape = (ee_store.n_images, x_size, y_size)
self._apparent_chunks = {k: 1 for k in self.store.PREFERRED_CHUNKS.keys()}
if isinstance(self.store.chunks, dict):
Expand Down

0 comments on commit 7bd0f5c

Please sign in to comment.