Fix bug in transport tracer pressure mask criteria affecting tracer st80_25 #2226
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: Lizzie Lundgren
Institution: Harvard University
Describe the update
This PR changes the pressure mask criteria used to mask sources for transport tracer
st80_25
. The criteria to mask the source was previously that the grid cell's upper bound was above the target region and the lower bound was below the target region. This effectively prevented the mask from ever being set since no grid cells span the entire target vertical region of 0 to 80 hPa.The fix changes the criteria to match what is done in GMAO's TR tracer package, checking only that the current grid cell's mid-point pressure is not within the target bounds.
Expected changes
We expect more heterogeneity in the tr80_25 tracer in transport tracer simulations, particularly outside of the source region of 0 to 80 hPa. Outside of that region the source will now be masked.
Reference(s)
None
Related Github Issue(s)
closes #2033