Make NetCDF the Default Format for CRTM LUTs (v3.2.0) #291
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the CRTM to use NetCDF as the default format for all Look-Up Table (LUT) interfaces (Aerosol, Cloud, Spectral, Transmittance, and Emissivity), replacing the legacy Binary default. This aligns the codebase with modern data standards while maintaining robust backward compatibility for legacy binary datasets.
Key Changes
Default Format Switch:
netCDFas the default format for all coefficient types..ncequivalents.TauCoeff_IO.f90,AerosolCoeff_IO.f90) to prioritize NetCDF when format flags are unspecified.Robust Backward Compatibility (Smart Detection):
CRTM_Init. The system now automatically checks for the existence of SpcCoeff/TauCoeff files. If the default (NetCDF) file is missing but a legacy Binary file exists, it seamlessly falls back to Binary format. This ensures that existing user applications and regression tests relying on binary data continue to work without modification.Default_File_Pathlogic to properly utilize theFile_Pathargument as a fallback for NetCDF loading whenNC_File_Pathis not provided.Test Suite Updates:
netCDF=.FALSE.to preserve the validity of binary IO unit tests.New Utilities:
TauCoeff_Inspecttool for inspecting Transmittance Coefficient files.Testing
ctest -j4: 100% Passed (193/193 tests).