ReFRACtor / ABSCO

Software that can generate a set of ABSoprtion COefficient tables that span the thermal IR to UV spectral range
Other
9 stars 4 forks source link

Bug with gases in UV region #13

Closed mcduffie closed 6 years ago

mcduffie commented 6 years ago

I get the following error:

TAPE5_BRO_P0000.0384_T290.0K_26310-28310
Note: The following floating-point exceptions are signalling: IEEE_INVALID_FLAG
STOP  LBLRTM EXIT
TAPE5_BRO_P0000.0384_T300.0K_26310-28310
Note: The following floating-point exceptions are signalling: IEEE_INVALID_FLAG
STOP  LBLRTM EXIT
TAPE5_BRO_P0000.0384_T310.0K_26310-28310
Note: The following floating-point exceptions are signalling: IEEE_INVALID_FLAG
STOP  LBLRTM EXIT
TAPE5_BRO_P1013.9480_T190.0K_28310-30310
Note: The following floating-point exceptions are signalling: IEEE_INVALID_FLAG
STOP  LBLRTM EXIT
Traceback (most recent call last):
  File "./run_LBLRTM_ABSCO.py", line 106, in <module>
    kObj.calcABSCO(mol)
  File "/home/mcduffie/Devel/refractor/absco_aer/ABSCO_compute.py", line 705, in calcABSCO
    kernel = self.degradeKern[iBand]
IndexError: list index out of range

When using this configuration of wavenumbers and molecules:

When using this config:
26,27c26,27
> wn1 = 26310
> wn2 = 33340
43c43
> molnames = BRO H2CO NO2 O2 O3 SO2
mcduffie commented 6 years ago

This bug has happened for both BRO and H2CO so far.

pernak18 commented 6 years ago

@mcduffie try the latest commit (e27a3c34badbf1573b8ee8f3a6eb39c96b8b73d9). the fix worked for me.

pernak18 commented 6 years ago

@mcduffie for clarity, this was an issue of bandwidth, not the UV region. LBL can only handle 2000 cm-1 bands at a time, and i did not implement that restriction with the spectral degradation code correctly.

mcduffie commented 6 years ago

Thanks its working for me. My only problem now is running out of memory.