geoschem / integrated_methane_inversion

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

bugfix for printing posterior emissions #261

Closed nicholasbalasus closed 3 months ago

nicholasbalasus commented 3 months ago

Name and Institution (Required)

Name: Nick Balasus Institution: Harvard University

Describe the update

I tested this with this script. It feels like MakePeriodsCSV should default to true but maybe the IMI isn't set up to handle that based on #256 (unless #260 fixes that).

#!/bin/bash

git clone https://github.com/geoschem/integrated_methane_inversion.git
cd integrated_methane_inversion
git checkout 8b5bf2a # bugfix/kf-printing
sed -i -e "s|Test_IMI_Permian|Test_IMI_Permian_KF|g" \
    -e "s|BlendedTROPOMI: false|BlendedTROPOMI: true|g" \
    -e "s|KalmanMode: false|KalmanMode: true|g" \
    -e "s|MakePeriodsCSV: false|MakePeriodsCSV: true|g" \
    -e "s|20180508|20180522|g" \
    -e "s|SetupSpinupRun: false|SetupSpinupRun: true|g" \
    -e "s|SetupJacobianRuns: false|SetupJacobianRuns: true|g" \
    -e "s|SetupInversion: false|SetupInversion: true|g" \
    -e "s|SetupPosteriorRun: false|SetupPosteriorRun: true|g" \
    -e "s|DoSpinup: false|DoSpinup: true|g" \
    -e "s|^DoJacobian: false|DoJacobian: true|g" \
    -e "s|DoInversion: false|DoInversion: true|g" \
    -e "s|DoPosterior: false|DoPosterior: true|g" \
    -e "s|/tropomi|/blended|g" envs/Harvard-Cannon/config.harvard-cannon.yml
sbatch -p huce_cascade -t 2-00:00 run_imi.sh envs/Harvard-Cannon/config.harvard-cannon.yml