Skip to content

[Minor API] Add to_xarray API to State#395

Merged
FlorianDeconinck merged 1 commit into
NOAA-GFDL:developfrom
FlorianDeconinck:minor/State_API_to_xarray
Mar 6, 2026
Merged

[Minor API] Add to_xarray API to State#395
FlorianDeconinck merged 1 commit into
NOAA-GFDL:developfrom
FlorianDeconinck:minor/State_API_to_xarray

Conversation

@FlorianDeconinck
Copy link
Copy Markdown
Collaborator

Description

Expose a to_xarray re-formatting a State to a xr.DataTree by reusing code written for to_netcdf

This is preliminary to a wider "State Recorder" idea being explored elsewhere.

How has this been tested?

Simple exposing of existing API

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (e.g. add new modules to docs/docstrings/)
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included

Copy link
Copy Markdown
Collaborator

@twicki twicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

Copy link
Copy Markdown
Collaborator

@romanc romanc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@FlorianDeconinck FlorianDeconinck added this pull request to the merge queue Mar 6, 2026
Merged via the queue into NOAA-GFDL:develop with commit 60f2c43 Mar 6, 2026
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.

3 participants