-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Description
Is this issue already tracked somewhere, or is this a new report?
- I've reviewed existing issues and couldn't find a duplicate for this problem.
Current Behavior
The earthaccess.open_virtual_mfdataset
function with access="direct"
returns a KeyError: 0
.
Here the earthaccess.get_s3_filesystem
is given granules[0]
when it should be given granules
.
earthaccess/earthaccess/dmrpp_zarr.py
Line 95 in b9dec8b
fs = earthaccess.get_s3_filesystem(results=granules[0]) |
Here the typing is misleading and should be Optional[list[DataGranule]]
.
earthaccess/earthaccess/api.py
Line 402 in b9dec8b
results: Optional[DataGranule] = None, |
Expected Behavior
The earthaccess.open_virtual_mfdataset
function with access="direct"
returns a dataset.
Steps To Reproduce
import earthaccess
results = earthaccess.search_data(
short_name="MUR-JPL-L4-GLOB-v4.1",
temporal=("2010-01-01", "2010-01-31"),
)
earthaccess.open_virtual_mfdataset(
results,
access="direct",
load=False,
concat_dim="time",
coords="all",
compat="override",
combine_attrs="drop_conflicts",
)
Environment
- OS: openscapes.2i2c
- Python: 3.12.0
Additional Context
No response
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
✅ Done