Open mcduffie opened 1 year ago
@mcduffie thanks for the detailed report. i can look into this, but probably not until the middle of next week
@mcduffie i think https://github.com/ReFRACtor/ABSCO/commit/eb8129ff9ccf404a769f7bff95bbf4f060a728c2 addresses this issue. i serendipitously stumbled across this very small bug while adding HDO to the package.
now, the differences are more numerous and larger:
% nccmp -f -d -N -T 1 nc_ABSCO/CO_04166-04358_v0.0_init.nc nc_ABSCO/CH4_04166-04358_v0.0_init.nc |& head DIFFER : VARIABLE : Cross_Section : POSITION : [0,0,46] : VALUES : 1.07802e-24 <> 7.12801e-23 : PERCENT : 98.4876 DIFFER : VARIABLE : Cross_Section : POSITION : [0,0,47] : VALUES : 1.01669e-24 <> 6.75467e-23 : PERCENT : 98.4948 DIFFER : VARIABLE : Cross_Section : POSITION : [0,0,48] : VALUES : 9.5865e-25 <> 6.40716e-23 : PERCENT : 98.5038 DIFFER : VARIABLE : Cross_Section : POSITION : [0,0,49] : VALUES : 9.02569e-25 <> 6.06235e-23 : PERCENT : 98.5112 DIFFER : VARIABLE : Cross_Section : POSITION : [0,0,50] : VALUES : 8.47691e-25 <> 5.74254e-23 : PERCENT : 98.5238 DIFFER : VARIABLE : Cross_Section : POSITION : [0,0,51] : VALUES : 7.95501e-25 <> 5.42501e-23 : PERCENT : 98.5336 DIFFER : VARIABLE : Cross_Section : POSITION : [0,0,52] : VALUES : 7.45217e-25 <> 5.12778e-23 : PERCENT : 98.5467 DIFFER : VARIABLE : Cross_Section : POSITION : [0,0,53] : VALUES : 6.97305e-25 <> 4.84375e-23 : PERCENT : 98.5604 DIFFER : VARIABLE : Cross_Section : POSITION : [0,0,54] : VALUES : 6.50811e-25 <> 4.56371e-23 : PERCENT : 98.5739 DIFFER : VARIABLE : Cross_Section : POSITION : [0,0,55] : VALUES : 6.06766e-25 <> 4.30824e-23 : PERCENT : 98.5916
Shouldn't this line
self.iMol = 0 if mol == 'HDO' else self.HITRAN.index(inMol)
be:
self.iMol = 0 if inMol == 'HDO' else self.HITRAN.index(inMol)
Since mol
is a loop variable and not the input to the method?
@mcduffie yes, thank you for catching that. the bug fix has been pushed with https://github.com/ReFRACtor/ABSCO/commit/b00453c399e16bae0841f17c02331fd6d0b3c78e
For the following ABSCO config portion (everything else is default values) the CH4 and CO tables produced end up being essentially the same value:
Both tables look "like" a CO table when plotted.
If we run CH4 and CO separately and delete the LBLRTM directories (LBL_Runs, LNFL_Runs, TAPE3_dir) in between runs we get tables that look as expected. Running separately means changing the config to list only one of the two species at a time and deleting the intermediate directories. Additionally, the CO table produced separately does not match the CO table produced when generated alongside CH4.