TacHawkes / HITRAN.jl

Spectrum calculation using the HITRAN database for Julia
MIT License
7 stars 0 forks source link

Diluent parameter should be more flexible for gas mixtures #2

Closed TacHawkes closed 3 years ago

TacHawkes commented 3 years ago

At the moment components and diluent are implemented as in HAPI. The problem I have with the diluent parameter is that "self" is not checked properly. The "self" abundance should always be matched against the components list and use the stated abundance value.

The question is: Is the diluent parameter necessary at all? The best way is to use the components listing and calculate the self/air values from automatically. If one wants to use He/CO2/H2O, it might be still necessary to explicitly specify the diluent Dict.