[Python] How to get the shape of a xarray dataset by using dims labels

Discussão em 'Python' iniciado por Stack, Janeiro 17, 2025.

  1. Stack

    Stack Membro Participativo

    Is there a more elegant way than this to get a tuple of the shape of some dimensions of an xarray dataset?

    tuple(dict(ds[['X', 'Y']].dims).values())

    Continue reading...

Compartilhe esta Página