Skip to content

Supporting fieldlist.MultiFieldList.to_xarray() #912

@JBreidaks

Description

@JBreidaks

Is your feature request related to a problem? Please describe.

The method MultiFieldList.to_xarray() would be used only for data structures that support converting to an xarray object. A MultiFieldList in EarthKit is likely a collection of multiple Field objects, and to_xarray() would be designed to convert these collections into an xarray.Dataset, which is used for working with labeled multi-dimensional data.

MultiFieldList.to_xarray() was supposed to convert a MultiFieldList (which is essentially a list of Field objects) into an xarray.Dataset, but if it's not implemented, it means that the system was not designed to directly convert multi-field collections to xarray without additional processing.
Maybe can use some transformation from
https://github.com/ecmwf/earthkit-data/blob/develop/src/earthkit/data/readers/grib/xarray.py
earthkit.data.core.fieldlist.MultiFieldList.to_xarray()

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Organisation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions