Skip to content

Creating a new backend for hdf5 files with lazy loading as dask arrays #7263

Answered by keewis
mraspaud asked this question in Q&A
Discussion options

You must be logged in to vote

as far as I can tell, you're not supposed to handle dask in the backend, this will be taken care of by open_dataset:

(Note that the backend is not directly involved in Dask chunking, because Xarray internally manages chunking.)

As such, I think you should change the last line to xr.open_dataset(filename, engine=SGLIBackend, chunks={}), but that raises an AttributeError.

Traceback
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Input In [1], in <cell line: 49>()
     41         ds["Lt_VN01"] = Variable(
     42             ["y", "x"],
     43             indexing.LazilyIndexedArray(H5A…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@mraspaud
Comment options

@mraspaud
Comment options

Answer selected by mraspaud
Comment options

You must be logged in to vote
1 reply
@mraspaud
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants