Convert from/to `xarray`

Offen
#978 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

@davidhassell arbeitet bereits daran.

Seit 20.11.2026.

  • #980 von @davidhassell — offen

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
data

Rechercherichtung

Read the linked issue #935 for the existing conversion direction and inspect the package-level API and current to_xarray methods. Determine how conversion from xarray datasets should construct cf.Field and cf.Domain objects, including how lists should be handled; done means both conversion directions are available through the unified package-level API. A linked pull request (#980) is already open.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement xarray

It would be nice to be able to convert from xarray datasets to cf.Field and cf.Domain constructs in memory.

See #935 (convert to xarray)

It would make sense to have a unified package-level API for this:

cf.from_xarray
cf.to_xarray

as opposed to to_xarray being a method on various classes. This new approach would also make it really easy to convert lists of fields/domains to xarray.

Vorherrschende Sprache
Python
Sterne
151
Forks
23
Ø Merge
3 T. 9 Std.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus NCAS-CMS/cf-python

Alle Issues in NCAS-CMS/cf-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.