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
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:
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: