Skip to content

Conversation

@ArthurVincentCS
Copy link

Introduce the function

def is_dimension_chunked(da: Union[xr.DataArray, xr.Dataset], dim: str):
    """
    Check if a dimension of an xarray DataArray or Dataset is chunked.

    Parameters
    ----------
    da : xarray.DataArray or xarray.Dataset
        The object to check.
    dim : str
        The name of the dimension to check.

    Returns
    -------
    bool
    """
    ...  

Can be used everywhere needed.

@hulecom hulecom merged commit 24a61c5 into CNES:main Dec 2, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants