-
Notifications
You must be signed in to change notification settings - Fork 191
GCAFS prep emissions update - fire emissions #3713
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
base: develop
Are you sure you want to change the base?
Conversation
…les and enhancing QFED and GBBEPx handling - Deleted outdated ExtData configuration files for GBBEPx, NONE, and QFED emissions. - Updated `forecast_predet.sh` to link chemical input files for GOCART. - Removed automatic generation of ExtData configuration in `parsing_namelists_GOCART.sh`. - Enhanced `aero_emissions.py` to improve handling of historical and forecast emissions, including better logging and error handling. - Implemented robust file searching for GBBEPx and QFED emissions, including support for multiple file patterns and improved directory checks. - Added functionality to combine multiple QFED files into a single NetCDF file with proper variable renaming and attribute management. - Updated the execution flow to ensure processed files are correctly tracked and logged.
#================================================================================ | ||
# 1. Aerosol settings | ||
#================================================================================ | ||
export AERO_INPUTS_DIR={{ AERO_INPUTS_DIR }} |
Check warning
Code scanning / shellcheck
This { is literal. Check expression (missing ;/\n?) or quote it. Warning
#================================================================================ | ||
# 1. Aerosol settings | ||
#================================================================================ | ||
export AERO_INPUTS_DIR={{ AERO_INPUTS_DIR }} |
Check warning
Code scanning / shellcheck
This { is literal. Check expression (missing ;/\n?) or quote it. Warning
#================================================================================ | ||
# 1. Aerosol settings | ||
#================================================================================ | ||
export AERO_INPUTS_DIR={{ AERO_INPUTS_DIR }} |
Check warning
Code scanning / shellcheck
This } is literal. Check expression (missing ;/\n?) or quote it. Warning
#================================================================================ | ||
# 1. Aerosol settings | ||
#================================================================================ | ||
export AERO_INPUTS_DIR={{ AERO_INPUTS_DIR }} |
Check warning
Code scanning / shellcheck
This } is literal. Check expression (missing ;/\n?) or quote it. Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request updates aerosol configuration and emissions handling for the UFS-Aerosols system by consolidating file management and enhancing modularity. Key changes include:
- Removing legacy logic for generating the AERO_ExtData.rc file and consolidating emission configuration files.
- Adding a link to chemical input files in forecast_predet.sh and updating configuration templates in both aerosol and chemical configuration files.
- Refactoring configuration files to improve clarity and maintainability.
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
ush/parsing_namelists_GOCART.sh | Removed legacy dynamic generation of AERO_ExtData.rc. |
ush/forecast_predet.sh | Added linking for CHEM_INPUT to ensure chemical input file availability. |
parm/ufs/gocart/ExtData.* | Removed obsolete emission configuration files, consolidating them into AERO_ExtData.rc. |
parm/ufs/gocart/AERO_ExtData.rc | Updated emission entries to use chemical input paths and adjusted emission factors. |
parm/chem/chem_emission.yaml.j2 | Updated templating loops for QFED variables and file copying operations. |
dev/parm/config/gfs/config.com | Added new chemical template paths. |
dev/parm/config/gcafs/config.aero.j2 | Reorganized aerosol sections and introduced new aerosol emission settings. |
#================================================================================ | ||
# 1. Aerosol settings | ||
#================================================================================ | ||
export AERO_INPUTS_DIR={{ AERO_INPUTS_DIR }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider enclosing the AERO_INPUTS_DIR value in quotes to prevent potential word splitting or globbing issues if the path contains spaces.
export AERO_INPUTS_DIR={{ AERO_INPUTS_DIR }} | |
export AERO_INPUTS_DIR="{{ AERO_INPUTS_DIR }}" |
Copilot uses AI. Check for mistakes.
Description
This pull request introduces significant updates to the aerosol configuration and emission handling in the UFS-Aerosols system, streamlining file management, improving modularity, and consolidating configuration files. Key changes include restructuring aerosol configuration files, enhancing biomass burning emissions handling, and updating the chemical input file linking process.
Aerosol Configuration Updates:
config.aero.j2
to organize settings into distinct sections for aerosol and emission configurations, including the addition of new variables likeAERO_EMIS_FIRE_VERSION
andAERO_EMIS_FIRE_HIST
. [1] [2]Emission Data Management:
ExtData.gbbepx
,ExtData.qfed
, andExtData.none
) into a single file,AERO_ExtData.rc
, for better modularity and maintainability. Removed redundant and unused emission entries. [1] [2] [3] [4]Chemical Input File Handling:
CHEM_INPUT
) inforecast_predet.sh
to ensure proper file availability during runtime.Removal of Legacy Code:
AERO_ExtData.rc
inparsing_namelists_GOCART.sh
, as the new consolidated configuration file eliminates the need for dynamic generation.Additional Updates:
config.com
to include new template paths for chemical restart and input files, improving file organization.Type of change
Change characteristics
How has this been tested?
Checklist