Closed msulprizio closed 1 day ago
Tagging @ktravis213 @jimmielin
I was able to get around this issue by creating a hemispheric mask file with the northern hemisphere defined as ID=1 and the southern hemisphere defined as ID=2. I then applied the scaling following the method described in Scale (or zero) emissions with a shapefile country mask.
This is a sufficient workaround for the IMI but perhaps we can consider expanding the code in hco_calc_mod.F90 to allow for masking of scale factors. In the meantime, we should probably remove this section from the HEMCO examples documentation since it doesn't work:
Thanks @msulprizio, I will remove that text.
@msulprizio: The text has been removed from RTD in commit a657308 (currently in the docs/dev
branch).
Thanks @yantosca!
This issue has been automatically marked as stale because it has not had recent activity. If there are no updates within 7 days it will be closed. You can add the "never stale" tag to prevent the issue from closing this issue.
Closing due to inactivity
Your name
Melissa Sulprizio
Your affiliation
Harvard
What happened? What did you expect to happen?
The example for scaling or zeroing emissions with a rectangular mask does not work. The current example in that text is:
In Base emissions
In Scale Factors:
In Masks:
I followed the example and modified the following lines in HEMCO_Config.rc to only apply the
OH_pert_factor
over the Southern Hemisphere:However, I get the error:
What are the steps to reproduce the bug?
See above
Please attach any relevant configuration and log files.
No response
What HEMCO version were you using?
3.9.1
What environment were you running HEMCO on?
Local cluster
What compiler and version were you using?
gcc 12.2.0
Will you be addressing this bug yourself?
Yes
In what configuration were you running HEMCO?
GCClassic
As what resolution were you running HEMCO?
2x2.5
What meterology fields did you use?
GEOS-FP
Additional information
In routine
APPLY_SCALE_FACTOR
in hco_calc_mod.F90 there is a check for the operator (i.e. the last integer defined in the scale factor line in HEMCO_Config.rc). In the example case in the docs it tells users to put the mask number there, however the code appears to only allow for three operators (multiply, divide, square).https://github.com/geoschem/HEMCO/blob/e68ebae6ed8286e09f3a18fd505873bce074edfa/src/Core/hco_calc_mod.F90#L1585-L1674
This leads me to believe that masking scale factors is not possible after all.