Skip to content

vmrh2o used as mixing ratio with respect to dry gas density and total gas density #8

Description

@hinnes97

Summary of issue

In cntnm_progr.f90, the variable vmrh2o is 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

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:
WK(1) = VMRH2O * W_dry
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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions