Making/Using LUT files, complex case |
|
|
RFM Examples | 02NOV26 | |
For terrestrial atmospheres, water vapour is the only absorber where the self-broadening contribution is large enough to make the absorption coefficient a function of absorber concentration as well as p,T, so requiring use of the third axis of the LUT tables.
It is also anticipated that the H2O LUT will be used with the H2O continuum (the RFM default behaviour for H2O LUTs [Details ...]) which means that the CTM flag is not used in the driver table to generate the LUT, but is used when the LUT is an input.
This example also introduces an optional compression step to reduce the size of the LUT file before use.
There are two separate FORTRAN programs that can be used to compress the data by removing axis points where the values can be adequately represented by interpolation from the remaining axis points.
R-TABCMP_V: Running TABCMP_V v2.01 Input file:tab_h2o.asc Convolved resolution [cm-1]:0.1 Max absorption error (eg 0.001):0.001 Output file:tab_h2o_v.asc I-TABCMP_V: Reading in LUT ... I-TABCMP_V: Starting to remove points. Initial No.= 701 700 1214.1500 3.1561E-06 99.9% 367 Err.lim.= 1.0271E-03 I-TABCMP_V: Summary: Orig Npts= 701 New Npts= 367 Red.Factor= 52.4% I-TABCMP_V: Writing new .tab file ... R-TABCMP_V: Successful completion
It has been assumed that an absorption error of 0.001 within any profile layer is acceptable, and that the LUT output will be convolved to a resolution of 0.1 cm-1.
This took a few second to run (but increases with number of spectral points), and results in a file tab_h2o_v.asc of size 13Mb containing 370 instead of 701 spectral axis points.
This is rather quicker to run. 'Orig Npts' and 'New Npts' here refer to N(p) x N(T) x N(q) axis points, while forR-TABCMP_X: Running TABCMP_X v2.01 Input file:tab_h2o_v.asc Max absorption error (eg 0.001):0.005 Output file:tab_h2o_vx.asc I-TABCMP_X: Reading in LUT ... I-TABCMP_X: Starting to remove points. Initial No.= 2244 Removing p-axis value= 1.092E-04 [hPa], ERR= 0.0000000 Removing p-axis value= 3.297E-05 [hPa], ERR= 0.0000000 Removing p-axis value= 1.339E-03 [hPa], ERR= 0.0000001 Removing p-axis value= 2.348E-04 [hPa], ERR= 0.0000001 Removing p-axis value= 5.594E-05 [hPa], ERR= 0.0000001 Removing p-axis value= 7.689E-03 [hPa], ERR= 0.0000002 Removing p-axis value= 5.506E-04 [hPa], ERR= 0.0000004 Removing p-axis value= 3.859E-02 [hPa], ERR= 0.0000029 Removing p-axis value= 3.244E-03 [hPa], ERR= 0.0000051 Removing p-axis value= 8.144E-02 [hPa], ERR= 0.0000250 Removing p-axis value= 4.387E+01 [hPa], ERR= 0.0000495 Removing p-axis value= 1.760E-02 [hPa], ERR= 0.0000550 Removing p-axis value= 1.651E-01 [hPa], ERR= 0.0000983 Removing p-axis value= 2.464E+00 [hPa], ERR= 0.0001487 Removing p-axis value= 3.232E-01 [hPa], ERR= 0.0001912 Removing p-axis value= 7.015E+01 [hPa], ERR= 0.0002046 Removing p-axis value= 3.755E+01 [hPa], ERR= 0.0002151 Removing p-axis value= 1.290E+00 [hPa], ERR= 0.0002750 Removing p-axis value= 6.875E+00 [hPa], ERR= 0.0002770 Removing p-axis value= 5.997E+01 [hPa], ERR= 0.0004990 Removing p-axis value= 6.121E-01 [hPa], ERR= 0.0005825 Removing p-axis value= 3.219E+01 [hPa], ERR= 0.0006316 Removing p-axis value= 4.947E+00 [hPa], ERR= 0.0007828 Removing p-axis value= 2.144E+01 [hPa], ERR= 0.0013266 Removing q-axis value= 150.00 [%], ERR= 0.0017615 Removing p-axis value= 3.509E+00 [hPa], ERR= 0.0019362 Removing p-axis value= 8.208E+01 [hPa], ERR= 0.0020729 Removing p-axis value= 1.126E+02 [hPa], ERR= 0.0023949 Removing p-axis value= 1.469E+01 [hPa], ERR= 0.0025048 Removing p-axis value= 1.812E+02 [hPa], ERR= 0.0027043 Removing p-axis value= 9.582E+02 [hPa], ERR= 0.0037365 I-TABCMP_X: Summary: Orig Npts= 2244 New Npts= 693 Red.Factor= 30.9%: I-TABCMP_X: Writing new .tab file R-TABCMP_X: Successful completion
The new file tab_h2o_vx.asc is size 4.3Mb, about a third of the size of the original, and contains 367 (ν) x 21 (p) x 11 (T) x 3 (q) = 264331 data points.
The calculated spectrum is shown in blue, but the plot also shows the difference compared to spectra calculated line-by-line (ie without LUTs), using the original uncompressed LUT, and using the LUT after just the wavenumber compression stage (almost identical).
Only the strong line at 1218.5 cm-1 is due to water vapour, the weaker lines are CH4, which is calculated line-by-line in all cases.