Skip to content

Xbatcher Alternative #41

@oftfrfbf

Description

@oftfrfbf

This looks maybe promising for an alternative to xbatcher:

xarray-contrib/xbatcher#165 (comment)

batch = (
    ds
    .rolling({"nlat": 3, "nlon": 3})
    .construct({"nlat": "nlat_input", "nlon": "nlon_input"})
    .stack({"input_batch": ("nlat", "nlon")}, create_index=False)
)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions