Skip to content

Add MITgcm support to uterm#30

Merged
koldunovn merged 1 commit intomainfrom
fix/uterm-mitgcm
Apr 8, 2026
Merged

Add MITgcm support to uterm#30
koldunovn merged 1 commit intomainfrom
fix/uterm-mitgcm

Conversation

@koldunovn
Copy link
Copy Markdown
Collaborator

Summary

  • Wire up existing file_mitgcm API in uterm.c — detection, open, mesh creation, variable scanning, dim info, and cleanup
  • Mirrors how ushow.c already handles MITgcm data, no code duplication

Fixes #25

Test plan

  • Builds cleanly with make WITH_ZARR=1 WITH_YAC=1
  • uterm ../DATA/MITgcm detects MITgcm data, loads grid/mesh/variables

uterm was missing MITgcm detection and handling, causing it to fall
through to NetCDF open which fails on MITgcm binary data directories.
Wire up the existing file_mitgcm API in all the same places ushow uses
it: file open, mesh creation, variable scanning, dim info, and cleanup.
@koldunovn koldunovn merged commit b8bed50 into main Apr 8, 2026
5 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.

uterm only works with netcdf(?)

1 participant