Skip to content

Add HEMCO-standalone dry-run data download scripts #295

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

Merged
merged 3 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - TBD
### Added
- Added TSOIL1 field to ExtState
- Added TSOIL1 field to `ExtState`
- Added `download_data.py` and `download_data.yml` to the `run` folder. These will be copied into HEMCO standalone rundirs
- Added `run/cleanRunDir.sh` script to remove old output files & log files

### Fixed
- Fixed formatting error in `.github/workflows/stale.yml` that caused the Mark Stale Issues action not to run

### Changed
- Added emission factors for ALK6, C4H6, EBZ, STYR, TMB for GFED and FINN biomass burning extensions
- Updated soil NOx extention to include the option to use soil temperature and parameterization based on Yi Wang et al. (ERL, 2021) instead of the temperature at 2 meters.
- Updated HEMCO standalone to print the dry-run header to the HEMCO log file unit `HcoState%Config%Err%Lun` only if the file is opened

## [3.9.3] - 2024-08-13
### Fixed
Expand Down
40 changes: 40 additions & 0 deletions run/cleanRunDir.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash

#============================================================================
# cleanRunDir.sh: Removes files created by GEOS-Chem from a run directory
#
# Usage:
# ------
# $ ./cleanRunDir.sh # Removes model output files in the run directory.
# # Also prompts the user before removing diagnostic
# # output files in OutputDir/.
#
# $ ./cleanRunDir.sh 1 # Removes model ouptut files in the run directory,
# # but will remove diagnostic output files without
# # prompting first. USE WITH CAUTION!
#============================================================================

# Clean model output files in the run directory
rm -fv *~
rm -fv HEMCO.log
rm -fv log*
rm -fv slurm-*
rm -fv core.*
rm -fv fort.*

#----------------------------------------------------------------------------
# Clean data files in OutputDir.
# These are netCDF files (*.nc) and KPP standalone interface files (*.txt).
#----------------------------------------------------------------------------
if [[ "x${1}" == "x" ]]; then # User confirmation required
rm -Iv ./OutputDir/*.nc*
rm -Iv ./OutputDir/*.txt
else # User Confirmation not required
rm -fv ./OutputDir/*.nc*
rm -fv ./OutputDir/*.txt*
fi

#---------------------------------------------------------------------------
# Give instruction to reset start date if using GCHP
#---------------------------------------------------------------------------
echo "Reset simulation start date in cap_restart if using GCHP"
1 change: 1 addition & 0 deletions run/createRunDir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ cp ./HEMCO_sa_Spec.rc ${rundir}
cp ./${grid_file} ${rundir}
cp ./runHEMCO.sh ${rundir}
cp ./README ${rundir}
cp ./download_data* ${rundir}
cp ${hco_config_dir}/HEMCO_Config.* ${rundir}
if [[ -f ${hco_config_dir}/HEMCO_Diagn.rc ]]; then
cp ${hco_config_dir}/HEMCO_Diagn.rc ${rundir}
Expand Down
Loading