geoschem / integrated_methane_inversion

Integrated Methane Inversion workflow repository.
https://imi.readthedocs.org
MIT License
26 stars 23 forks source link

[Bugfix] Compatibility with MERRA2 met fields #91

Closed sabourbaray closed 1 year ago

sabourbaray commented 1 year ago

A couple of lines should be changed in setup_imi.sh to be compatible with MERRA2 and 0.5x0.625 resolution:

L251:

-e "s:geosfp:${Met}:g" \

I think geosfp is in caps when generating the run directory:

-e "s:GEOSFP:${Met}:g" \

L310-311:

        sed -i -e "s:GEOS_${native}:GEOS_${native}_${NestedRegion}:g" HEMCO_Config.rc
    sed -i -e "s:GEOS_${native}:GEOS_${native}_${NestedRegion}:g" HEMCO_Config.rc.gmao_metfields

Since the script generates a geosfp run directory at 0.25x0.3125 resolution by default, the first ${native} in the search should be replaced, and the next directory should also be included so it can be changed. Something like:

        sed -i -e "s:GEOS_0.25x0.3125\/GEOS_FP:GEOS_${native}_${NestedRegion}\/${metDir}:g" HEMCO_Config.rc
    sed -i -e "s:GEOS_0.25x0.3125\/GEOS_FP:GEOS_${native}_${NestedRegion}\/${metDir}:g" HEMCO_Config.rc.gmao_metfields
nicholasbalasus commented 1 year ago

Fixed in IMI 1.2.0 (see #100)