In src/write_BCs/write_boundary.py, a previously calculated bias correction is applied to GEOS-Chem BoundaryCondition files. The same correction in units of ppb is applied to all model levels. However, in src/write_BCs/write_boundary.py, the number of vertical model levels is hardcoded to be 47. I know this is the IMI standard configuration, but the option is given for a user to write boundary conditions from their own GEOS-Chem runs which could have a different configuration than standard IMI, which opens up the possibility that the bias correction would not be applied to all the model levels if a 47 level configuration wasn't used.
In
src/write_BCs/write_boundary.py
, a previously calculated bias correction is applied to GEOS-Chem BoundaryCondition files. The same correction in units of ppb is applied to all model levels. However, insrc/write_BCs/write_boundary.py
, the number of vertical model levels is hardcoded to be 47. I know this is the IMI standard configuration, but the option is given for a user to write boundary conditions from their own GEOS-Chem runs which could have a different configuration than standard IMI, which opens up the possibility that the bias correction would not be applied to all the model levels if a 47 level configuration wasn't used.Here is the original code: https://github.com/geoschem/integrated_methane_inversion/blob/b49ce2ffe5cd72ff6ce094b26c62671c88ddc8fe/src/write_BCs/write_boundary.py#L47C1-L49C77
I think a simple fix would be to changes lines 47-49 from:
to