Skip to content

Conversation

@BenjaminTJohnson
Copy link
Contributor

Description

This PR introduces new utility programs to inspect the contents of TauCoeff files (Transmittance Coefficients). These tools support both ODPS and ODAS algorithms and can handle both Binary and NetCDF file formats.

1. New Utility: TauCoeff_Inspect

A robust inspection tool located in src/Coefficients/TauCoeff/TauCoeff_Inspect/.

Capabilities

  • Detects file format (Binary .bin or NetCDF .nc)
  • Determines Algorithm ID (ODPS vs. ODAS)
  • Reads and displays file metadata and contents using the appropriate Info_* routines

Integration

  • Added to the build system in test/CMakeLists.txt under TCoeff_Utils

3. CMake Updates

  • test/CMakeLists.txt: Updated to register TauCoeff_Inspect as an executable target, linking it against the crtm library

- Change BeCoeff_IO default from Binary to netCDF
- Add netCDF optional argument to CRTM_BeCoeff_Load
- Update CRTM_BeCoeff to use BeCoeff_IO instead of BeCoeff_Binary_IO directly
- Add BeCoeff netCDF unit test (test_becoeff_io_nc)
- Update documentation to reflect netCDF as default

Binary format remains supported via netCDF=.FALSE. argument.
ODPS, ODAS, Zeeman (z*TauCoeff*), netcdf, and binary formats.  It doesn't do a full dump, bu
t somewhat similar in scope to SpcCoeff_Inspect.  This is something that has been long missing in CRTM.
@BenjaminTJohnson
Copy link
Contributor Author

BenjaminTJohnson commented Jan 13, 2026

This also includes a BeCoeff set of routines to read/write BeCoeff files and default to netCDF formats, but I don't think anyone uses standalone BeCoeff files anymore (??) Zeeman information is encoded in the z*TauCoeff files, I don't see any mechanism where BeCoeff files are read in, unless it's part of TauProd in coefficient generation.

If I don't hear otherwise, I'll probably just remove the BeCoeff stuff.

@BenjaminTJohnson BenjaminTJohnson merged commit b90606d into develop Jan 22, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CRTM CRTM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant