Skip to content
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

Handle 3D NEI emissions #268

Conversation

nicholasbalasus
Copy link
Contributor

Name and Institution (Required)

Name: Nick Balasus
Institution: Harvard

Confirm you have reviewed the following documentation

Describe the update

Modifies src/Core/hco_interp_mod.F90 to handle 3D emissions from NEI. The handling is now that if the emissions are 3, 11, or 36 levels, they are assumed to be GEOS-Chem levels. 3 and 11 levels are NEI emissions and 36 levels are AEIC emissions. This is not the prettiest fix so let me know what you think @jimmielin @yantosca. This update was necessary because of the changes made in daf54d0.

Expected changes

If merged with geoschem/geos-chem#2213, NEI emissions should work again. Thanks to @Lukemonr for finding this issue.

Reference(s)

n/a

Related Github Issue(s)

#264

syntax fix + changelog

syntax fix

syntax
@yantosca yantosca self-requested a review March 22, 2024 15:17
@yantosca yantosca self-assigned this Mar 22, 2024
@yantosca yantosca added topic: Regridding or Interpolation Related to issues with time interpolation or horiziontal/vertical regridding category: Bug Fix Fixes a bug that was previously reported labels Mar 22, 2024
Copy link
Contributor

@yantosca yantosca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nicholasbalasus. I think this will work as a quick fix. We will need to think of a better way going forward. Maybe we could use the filename in the HEMCO state as an indicator of what type of data the file is, and then use that instead of the # of levels. My concern is that users might try to implement other emissions data containing these # of levels and then there might be side-effects.

@yantosca yantosca added this to the 3.8.1 milestone Mar 22, 2024
@jimmielin
Copy link
Collaborator

Thanks @nicholasbalasus for the fix. I remember that before when the levels were hardcoded the files had a metadata attribute with the level unit being "GEOS-Chem level". That's what we check for in CESM/WRF code. Can I ask if the 3D NEI emissions no longer have this attribute?

@nicholasbalasus
Copy link
Contributor Author

Good point, @jimmielin. They do have this attribute and that used to be part of the IsModelLevel check. I removed that in daf54d0 in part because I wasn't aware that files like the AEIC and NEI emissions existed.

yantosca pushed a commit that referenced this pull request Mar 22, 2024
This merge brings PR 268 (Handle 3D NEI emissions, by @nicholasbalasus)
into the HEMCO "no-diff-to-benchmark" development stream.

This PR implements a workaround to an issue caused by the merge of
HEMCO PR #235 (Bug fix for vertical regridding).  This must be merged
simultaneously with GEOS-Chem PR #2213.

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
@yantosca
Copy link
Contributor

All GEOS-Chem Classic integration tests passed:

==============================================================================
GEOS-Chem Classic: Execution Test Results

GCClassic #8b8ac95 GEOS-Chem submod update: Merge PR #2187 (Update intgration/parallel tests)
GEOS-Chem #53635e9f1 Merge PR #2213 (Change NEI 2D emissions to xy dimension)
HEMCO     #2a4bb12 Merge PR #268 (Handle 3D NEI emissions)

Using 24 OpenMP threads
Number of execution tests: 26

Submitted as SLURM job: 24860287
==============================================================================

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%  All execution tests passed!  %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Also, all integration tests were zero-diff w/r/t 14.3.0, except:

  • APM (known parallelization issue
  • RRTMG (numerical noise in RRTMG collection)

@yantosca
Copy link
Contributor

All GCHP integration tests passed:

==============================================================================
GCHP: Execution Test Results

GCHP      #def016b GEOS-Chem submod update: Merge PR #2187 (Update intgration/parallel tests)
GEOS-Chem #53635e9f1 Merge PR #2213 (Change NEI 2D emissions to xy dimension)
HEMCO     #2a4bb12 Merge PR #268 (Handle 3D NEI emissions)

Number of execution tests: 6

Submitted as SLURM job: 24861290
==============================================================================
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%  All execution tests passed!  %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Also, all tests were zero-diff w/r/t GCHP 14.3.0.

@yantosca yantosca linked an issue Mar 22, 2024 that may be closed by this pull request
4 tasks
@yantosca
Copy link
Contributor

Closing, as this PR is already merged into the HEMCO "no-diff-to-benchmark" development stream. Thanks @nicholasbalasus!

@yantosca yantosca closed this Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Fix Fixes a bug that was previously reported topic: Regridding or Interpolation Related to issues with time interpolation or horiziontal/vertical regridding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ModelLev_Interpolate and MESSy error with NEI emissions
3 participants