Skip to content

Conversation

@jsignell
Copy link
Member

Just tries to add a suggestion about which library to install. @keewis had done something similar for guess_chunkmanager already.

For instance, if you have cubed but not cubed-xarray:

import cubed
import cubed.random

import xarray as xr

t_length = 50
spec = cubed.Spec(allowed_mem="2GB")

u = cubed.random.random((t_length, 1, 987, 1920), chunks=(10, 1, -1, -1), spec=spec)
v = cubed.random.random((t_length, 1, 987, 1920), chunks=(10, 1, -1, -1), spec=spec)

ds = xr.Dataset(
    dict(
        anom_u=(["time", "face", "j", "i"], u),
        anom_v=(["time", "face", "j", "i"], v),
    )
)
result = ds**2
result.compute()

@github-actions github-actions bot added the topic-NamedArray Lightweight version of Variable label Dec 23, 2025
@jsignell jsignell added the topic-chunked-arrays Managing different chunked backends, e.g. dask label Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-chunked-arrays Managing different chunked backends, e.g. dask topic-NamedArray Lightweight version of Variable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant