tabhdr.f90 is a FORTRAN90 program to extract axis and profile information from RFM look-up tables of pre-tabulated absorption coefficient (.tab files, created using the TAB option).
For example, this could be useful for generating subsequent LUTs with similar axes to a given LUT (assuming the rfm.drv file used to generate the original LUT no longer exists).
Download the program source [tabhdr.f90] and the auxiliary modules [tabaux.f90]
Compile with any generic FORTRAN compiler, eg
(although, if using binary .tab files, use the same compiler as for the RFM
which created the original files —
A typical run might be
(user responses in bold)
To run the program, type tabhdr and respond to the prompts.
A typical run might be (user responses in bold)
|tabhdr R-TABHDR: Running TABHDR v2.0 Input file: tab_co.asc MolecID: 5 co Summary: NPts <---- Range ----> p-axis: 51 1.017E+03 1.955E-05 T-axis: 13 180. 300. q-axis: 1 100. 100. v-axis: 39758 2000.0000 2250.0000 Writing p-axis values to file: tab.pre Writing T-axis values to file: tab.tem Writing profile values to file: tab.atm Writing irregular spectral grid to file: tab.grd R-TABHDR: Succesful completion||Shows version of program being run User supplies name of .tab file Molecule identified as CO, with HITRAN ID=5 Summary of the tabulation axes p-axis in hPa T-axis in K q-axis as % of embedded profile v-axis in cm-1 List of output files being created No q-axis since just single value Embedded T, VMR profiles Irreg grid so .grd file created Successful completion message|
The program takes a few seconds to run with an irregular grid (since every record has to be read) but is instantaneous with regularly gridded data (since only the file header is read).
The only error messages expected are associated with reading/writing files.