To use gridded state vector and perturbation scaling factor in HEMCO for IMI #356
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Name and Institution (Required)
Name: Dandan Zhang
Institution: Harvard University
Describe the update
As the feature of scaling grid boxes with specific value from a text file in HEMCO does not work with GCHP, as stated in a ticket of geoschem/GCHP#432, I modified the HEMCO code to apply gridded scaling factor based on the value of state vector ID at geoschem/HEMCO#330. This update of HEMCO would work for both GCC and GCHP. Thus, to minimize the differences between IMI-GCC and IMI-GCHP for synchronizing updates later, I modified the code for creating Jacobian runs in IMI-GCC as well.
To work with IMI specific configs, the changes made at geoschem/geos-chem#2893 need to be incorporated to make it work properly for creating Jacobian run directories.
Note:
Expected changes
There is no difference (except rounding error) of using this branch from the default, but applying this branch would help minimizing the differences between IMI-GCC and IMI-GCHP for the sake of future update synchronization.
Using IMI-GCC version 2.2.0 at 2x2.5 for testing. The visualization notebooks from the default and this branch show negligible difference:
visualization_notebook.zip
Also to check the perturbation runs, I output the emissions for a perturbation run, which is supposed to have 1e-8 target emissions over a certain pixel (state vector element), and 0 elsewhere.

The emissions for an example state vector ID 3000 (zoom in to see near the Horn of Africa) by default (ref) and using this branch (dev):
Additional note - preparation of the test run:
HEMCO_Config.rc
from this branch (and reverting back to use daily GFED) in Fix for emission configurations for carbon simulations geos-chem#2893