Skip to content

Commit

Permalink
correct bug on mol_modify for PWV in libsimulateVisible.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvielsstfr committed Aug 27, 2024
1 parent 38e1f01 commit fd84f4e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/libradtranpy/libsimulateVisible.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
:author: sylvielsstfr
:creation date: November 2nd 2016
:last update: February 20th 2024
:update: February 20th 2024
:last update : August 27th 2024
"""

import os
Expand Down Expand Up @@ -272,6 +273,8 @@ def ProcessSimulation(airmass_num, pwv_num, oz_num, press_num, aer_num, angstrom

# water vapor
pwv_str='H2O '+str(pwv_num)+ ' MM'
# try to solve the dictionnary with two identical keys
pwv_str2 = ' '+str(pwv_num)+ ' MM'

# Ozone
oz_str='O3 '+str(oz_num)+ ' DU'
Expand Down Expand Up @@ -314,8 +317,9 @@ def ProcessSimulation(airmass_num, pwv_num, oz_num, press_num, aer_num, angstrom
# set up the PWV and ozone value
# Notice we have mol_modify key twice in libradtran input file, both for PWV and OZ
# But same key in uvspec.inp dictionary would overwrite pwv
uvspec.inp["mol_modify"] = pwv_str
uvspec.inp["mol_modify2"] = oz_str #### BUGUGUGUGUGUGUGUG ==> No because overwrite pwv. UVspec3 manage the same tag for PWV and OZ
#uvspec.inp["mol_modify"] = pwv_str # OLD
uvspec.inp["mol_modify H2O"] = pwv_str2
uvspec.inp["mol_modify"] = oz_str #### BUGUGUGUGUGUGUGUG ==> No because overwrite pwv. UVspec3 manage the same tag for PWV and OZ

# rescale pressure if reasonable pressure values are provided
if press_num > 200. and press_num < 1080.:
Expand Down

0 comments on commit fd84f4e

Please sign in to comment.