Summary of issue
In cntnm_progr.f90, the variable vmrh2o is referred to as a mixing ratio with respect to the total column density:
|
print *,' *** For this program, vmr_h2o is taken ', & |
|
'with respect to the total column ***' |
The variable
W_dry is defined consitently with this definition as:
|
W_dry = WTOT * (1.-VMRH2O) |
However, later it is written:
where wk(1) is supposed to be the column density of water vapour. This implies that
h2ovmr is a mixing ratio with respect to the dry column mass, but taken with the line above this suggests
wk(1) = w_dry*h2ovmr = wtot*vmrh2o*(1-vmrh2o), which I think leads to an underestimation in the water column density.
Resulting errors in optical depths
This leads to problems in the LBLRTM cntnm.f90, because WTOT (the total column density) is redefined as the sum of wk entries:
DO 10 M = 1, NMOL
WTOT = WTOT+WK(M)
10 CONTINUE
leading to it being underestimated, and lower than the value of WTOT in cntnm_progr.f90, or the value derived using the ideal gas law $p/kT \times \text{path length}$. This then affects the value of h2o_fac, which is supposed to be the total $\text{H}_2\text{O}$ column density as wk(1)/WTOT, but is now not equal to vmr_h2o because wk(1) and WTOT have both been underestimated.
This doesn't affect the coefficients in WATER.COEF because they are both divided by and multpilied through by h2o_fac at various points in the code. However, it does affect the optical depths in CNTNM.OPTDPT since these rely on the continuum coefficients being multiplied by wk(1).
Proposed solution
TL;DR, I think this can be solved by changing: WK(1) = VMRH2O * W_dry to WK(1) = VMRH2O * WTOT. Using this change, I can get agreement between optical depths calculated with WATER.COEF coefficients, those in CNTNM.OPTDPT and those derived from the netcdf file absco-ref_wv-mt-ckd.nc
Summary of issue
In
cntnm_progr.f90, the variablevmrh2ois referred to as a mixing ratio with respect to the total column density:MT_CKD/src/cntnm_progr.f90
Lines 187 to 188 in f6edc93
W_dryis defined consitently with this definition as:MT_CKD/src/cntnm_progr.f90
Line 213 in f6edc93
MT_CKD/src/cntnm_progr.f90
Line 235 in f6edc93
h2ovmris a mixing ratio with respect to the dry column mass, but taken with the line above this suggestswk(1) = w_dry*h2ovmr = wtot*vmrh2o*(1-vmrh2o), which I think leads to an underestimation in the water column density.Resulting errors in optical depths
This leads to problems in the LBLRTM
cntnm.f90, becauseWTOT(the total column density) is redefined as the sum ofwkentries:leading to it being underestimated, and lower than the value of$p/kT \times \text{path length}$ . This then affects the value of $\text{H}_2\text{O}$ column density as
WTOTincntnm_progr.f90, or the value derived using the ideal gas lawh2o_fac, which is supposed to be the totalwk(1)/WTOT, but is now not equal tovmr_h2obecausewk(1)andWTOThave both been underestimated.This doesn't affect the coefficients in
WATER.COEFbecause they are both divided by and multpilied through byh2o_facat various points in the code. However, it does affect the optical depths inCNTNM.OPTDPTsince these rely on the continuum coefficients being multiplied bywk(1).Proposed solution
TL;DR, I think this can be solved by changing:
WK(1) = VMRH2O * W_drytoWK(1) = VMRH2O * WTOT. Using this change, I can get agreement between optical depths calculated withWATER.COEFcoefficients, those inCNTNM.OPTDPTand those derived from the netcdf fileabsco-ref_wv-mt-ckd.nc