Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

yantosca
Copy link
Contributor

@yantosca yantosca commented Nov 6, 2024

Name and Institution (Required)

Name: Bob Yantosca
Institution: Harvard + GCST

Describe the update

We have added a dry-run data-download capability for the HEMCO standalone simulation in this PR. This PR does the following:

  1. Adds the run/download_data.yml and run/download_data.py scripts (based off the GEOS-Chem Classic 14.5.0 dry-run capability). This is now documented on the "latest" HEMCO ReadTheDocs documentation:

  2. Adds the run/cleanRunDir.sh script, which is based off the GEOS-Chem version. This can be used to remove obsolete
    output files and log liles.

Expected changes

This PR now allows you to download data from dry-run HEMCO standalone log output.

Reference(s)

N/A

Related Github Issue

N/A

src/Interfaces/Standalone/hcoi_standalone_mod.F90
- Bug fix: Only call Print_Dry_Run_Warning routine (which writes
  the dry run header) to file unit HcoState%Config%Err%LUN if
  it is open (i.e. file unit > 0).  This prevents a runtime error.

CHANGELOG.md
- Updated accordingly

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
run/createRunDir.sh
- Added a command to copy download_data* files to the HEMCO
  standalone rundir

CHANGELOG.md
- Updated accordingly

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
run/cleanRunDir.sh
- Added this script to remove old output files & logs.
  Based on the cleanRunDir.sh script used for GEOS-Chem.

run/download_data.py
- Read start & stop times from the HEMCO_sa_Time.rc file
- Read ROOT, MET, RES from the HEMCO_sa_Config.rc file
- Removed GEOS-Chem-specific code
- Make sure local_prefix variable ends in "/ExtData"
- Do not try to download HEMCO_restart* files

run/download_data.yml
- Removed the "restarts" section, we do not need to read
  GEOS-Chem restart files in the HEMCO standalone

CHANGELOG.md
- Updated accordingly

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
@yantosca yantosca added category: Feature Request New feature or request topic: Dry-Run Simulation Related to the HEMCO dry-run capability labels Nov 6, 2024
@yantosca yantosca added this to the 3.10.0 milestone Nov 6, 2024
@yantosca yantosca requested a review from msulprizio November 6, 2024 21:25
@yantosca yantosca self-assigned this Nov 6, 2024
@yantosca yantosca added the no-diff-to-benchmark This update will have no impact on benchmark simulations label Nov 7, 2024
@yantosca yantosca merged commit e9d951f into dev/3.10.0 Nov 7, 2024
1 check passed
@yantosca yantosca deleted the bugfix/hemco-standalone branch November 7, 2024 16:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
category: Feature Request New feature or request no-diff-to-benchmark This update will have no impact on benchmark simulations topic: Dry-Run Simulation Related to the HEMCO dry-run capability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants