Skip to content

Selection based on boolean DataArray #811

@pwolfram

Description

@pwolfram

Should xarray indexing account for boolean values without resorting to a call to np.where? For example, acase.sel(Np=np.where(idx)[0]) works but acase.sel(Np=idx) does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions