Skip to content

Migrate GEOS_TopoGet from BinIO to NetCDF4#424

Merged
tclune merged 3 commits into
release/MAPL-v3from
feature/remove-BinIO-from-TopoGet
May 8, 2026
Merged

Migrate GEOS_TopoGet from BinIO to NetCDF4#424
tclune merged 3 commits into
release/MAPL-v3from
feature/remove-BinIO-from-TopoGet

Conversation

@tclune
Copy link
Copy Markdown
Collaborator

@tclune tclune commented May 8, 2026

Summary

  • Replace GETFILE/MAPL_VarRead(unit,...)/FREE_FILE (BinIO) with Netcdf4_Fileformatter and MAPL_VarRead(formatter,name,ptr) from NCIOMod
  • Reads topo fields using NetCDF variable names: z (MEAN), gwd (GWDVAR), trb (TRBVAR)
  • Add _ASSERT(.not. present(...)) guards for GWDVARX, GWDVARY, GWDVARXY, GWDVARYX which have no NetCDF equivalent yet
  • Remove dead variables (unit, GWDFACX/Y/XY/YX) and unsupported file-fetch branches
  • MAPL_VarRead is temporarily sourced from MAPL2 pending migration of NCIOMod into mapl_base3g (tracked separately in MAPL)

Notes

Binary/ASCII topo .data files are no longer supported. NetCDF4 topo files must be provided.

- Replace GETFILE/MAPL_VarRead(unit)/FREE_FILE with Netcdf4_Fileformatter
- Read topo fields using MAPL_VarRead with variable names: z, gwd, trb
- Add _ASSERT for unsupported GWDVARX/Y/XY/YX arguments
- Remove unsupported binary file branches and associated dead variables
- MAPL_VarRead still sourced from MAPL2 pending NCIOMod migration to mapl_base3g
@tclune tclune requested review from a team as code owners May 8, 2026 15:00
@tclune tclune added the 0 diff The changes in this pull request have verified to be zero-diff with the target branch. label May 8, 2026
@tclune tclune merged commit 9c8be2f into release/MAPL-v3 May 8, 2026
14 checks passed
@tclune tclune deleted the feature/remove-BinIO-from-TopoGet branch May 8, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 diff The changes in this pull request have verified to be zero-diff with the target branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant