Skip to content

[BUG] open_virtual_dataset() should allow load=False #1185

@betolink

Description

@betolink

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.

Have you checked the status of Earthdata services?

  • I've executed earthaccess.status() and both CMR and EDL returned 'OK'.

Current Behavior

When we virtualize datasets and for some reason we need to pre-process each granule, we should be able to run open_virtual_dataset() with load=False to avoid materializing coordinate dimensions. These coordinates are ok if we are going to do slice indexing (subsetting) with the in-memory dataset but not scalable if we just want to kerchunkify/virtualize the dataset. Work in progress on a PR.

Expected Behavior

open_virtual_dataset(load=False) will not materialize any dimension.

Steps To Reproduce

vds = earthacces.open_virtual_dataset([result], load=False)

Environment

- OS:
- Python:

Additional Context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions