Skip to content

Relaxing CO2 trace gas assumption in OpticalThickness.py ? #18

@AndrewILWilliams

Description

@AndrewILWilliams

At the moment, compute_tau_H2ON2_CO2dilute assumes that CO2 is a trace gas and so doesn't include the partial pressure of CO2 in the calculation. I'm currently running PyRADS with CO2 values up to ~50,000ppmv and so this is a problem.

To fix this, is it sufficient to add in the partial pressure of CO2 and then just change the broadening to "mixed"?

i.e.

p_CO2 = pres * ppv_CO2
p_H2O = RH * params.esat(temp)  # ...

q_CO2 = convert_molar_to_mass_ratio(ppv_CO2,params.R_CO2,R_mean)

R_mean = q_H2O*params.Rv + q_CO2*params.R_CO2 + (1.-q_H2O - q_CO2)*params.R


kappaH2O = getKappa_HITRAN(grid.n,grid.n0,grid.n1,grid.dn, \
                           "H2O",press=pres,press_self=p_H2O, \
                           temp=temp,broadening="mixed", lineWid=25., \
                           cutoff_option="fixed",remove_plinth=True)

kappaCO2 = getKappa_HITRAN(grid.n,grid.n0,grid.n1,grid.dn, \
                           "CO2",press=pres,press_self=p_CO2, \
                           temp=temp,broadening="mixed", lineWid=25., \
                           cutoff_option="fixed",remove_plinth=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions