Skip to content

Option to pre-load data in Buffer.to_xarray() and xr.open_dataset() #97

@neishm

Description

@neishm

Related to #92, there may be cases where the data is small enough to load into memory. If this is done within .to_xarray() before the object is constructed, then there's enough FST information to load the data in the natural order on disk, speeding up the reading process.

So, if someone is intending to pre-load the data anyway, e.g.

ds = Buffer("file.fst").to_xarray().load()

Then it may be more efficient to preemptively do this via something like:

ds = Buffer("file.fst").to_xarray(type="numpy")

Or from open_dataset:

ds = xr.open_dataset("file.fst",engine="fstd",type="numpy")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions