Skip to content

Commit

Permalink
filter out CH lines, because they appear to be problematic (see #365)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajwheeler committed Nov 20, 2024
1 parent e7caa60 commit ce310fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/linelist.jl
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,11 @@ function get_GES_linelist(; include_molecules=true)
h5open(path, "r") do f
each_species = [Species(s) for s in read(f["species"])]
filter = ones(Bool, length(each_species))

# see https://github.com/ajwheeler/Korg.jl/issues/356
# there seem to be errors in the CH lines. Many have very large log(gf) values.
filter .= [s != Korg.species"CH" for s in each_species]

if !include_molecules
filter .= [!ismolecule(s) for s in each_species]
end
Expand Down

0 comments on commit ce310fc

Please sign in to comment.