-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Applying a mask to a scale factor does not work #286
Comments
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. |
docs/source/hco-ref-guide/more-examples.txt - Removed the "Scale (or zero) emissions with a rectangular mask" example from the "More configuration examples" chapter. @msulprizio pointed out in issue #286 that applying a scale factor to a mask does not currently work, and so this example also does not work properly. CHANGELOG.md - Updated accordingly Signed-off-by: Bob Yantosca <[email protected]>
@msulprizio: The text has been removed from RTD in commit a657308 (currently in the |
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. |
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).HEMCO/src/Core/hco_calc_mod.F90
Lines 1585 to 1674 in e68ebae
This leads me to believe that masking scale factors is not possible after all.
The text was updated successfully, but these errors were encountered: