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

Patches to S2S scripts for Nov 2021 Air Force Deliverable #926

Merged

Conversation

emkemp
Copy link
Contributor

@emkemp emkemp commented Nov 9, 2021

Description

Numerous changes to S2S scripts for November 2021 Air Force deliverable, including replacing most shell scripts with Python 3.

emkemp and others added 30 commits October 14, 2021 09:05
 Code updates to the LIS enesmble forecast reader and the
  precipitation forecast reader to include additional
  model entries (e.g., CFSv2).  Default entry is for "GEOS5".
 - Added new lis config file entry and option documentation for
    the generic ensemble-based forecast forcing reader in LIS.

 - Added new entries and documentation in the lis config doc
    for the precipitation-only ensemble forecast forcing reader.
    (This information was missing before in the documentation)
…ix/lisf74-s2s-patches

Catching-up with support branch.
1. run_generate_metrics.sh is the new batch job script, and it accepts the
path to the s2smetrics/lib_bcsd_metrics directory as an argument.
2. Trimmed print statements for back-end Python scripts.  Also added creation
of "touch" files to mark when metric jobs are completed.  Touch files are in
same directory as the metrics netCDF files.
Updated paths for testing on Discover with multiple NMME-forced LIS forecasts.
NOTE:  These scripts currently process only GEOSv2 LIS runs (for testing
efficiency).
* Replaced classic string formats with f-strings.
* Added encoding for open statements.
@jvgeiger
Copy link
Contributor

jvgeiger commented Nov 9, 2021

Thanks.

@jvgeiger
Copy link
Contributor

  1. I would like to remove the #SBATCH --mail-user lines from the scripts. I realize that this is a placeholder for the user to fill in, but if the user does not then
  • #SBATCH --mail-user= will end up not sending an email notification
  • #SBATCH [email protected] will end up sending an email to email.com, which is a registered domain and which most likely will bound back to SLURM.

Setting #SBATCH --mail-type=END is sufficient to tell SLURM to send an email notification to the submitter upon completion of the job.

  1. The lvt/utils/usaf/s2smetric/README files refers to "8u" scripts. The document calls out 8 scripts, but there are 9 in that directory - make_s2s_metric_geotiff.py is not referred to. Should I correct this to 8 or 9?

@karsenau
Copy link
Contributor

Thanks @jvgeiger!

@karsenau can take on #1, if @emkemp wants to do #2

@emkemp
Copy link
Contributor Author

emkemp commented Nov 10, 2021

I'll tackle the README file. (Sorry about that!)

@emkemp
Copy link
Contributor Author

emkemp commented Nov 10, 2021

I moved make_s2s_metric_geotiff.py into a separate directory. It is only in the repository in case we really need to create separate GeoTIFFs for each metric ensemble member (no sense throwing it away). But is it not considered part of s2smetric at this time.

The README has been updated.

@emkemp
Copy link
Contributor Author

emkemp commented Nov 10, 2021

I removed the --mail-user= in the script for the Bratseth retuning software (separate from S2S, won't interfere with the updates from @karsenau)

@karsenau
Copy link
Contributor

Thanks @emkemp !

I'm just about to commit the other removed "mail" lines in the slurm scripts.

@karsenau
Copy link
Contributor

@jvgeiger and @emkemp:

I realized the following script:
generate_s2safricom_da_config_scriptfiles_fcst.py

Has sort of a "misleading" naming convention, as this is the script that generates the forecast run, not the da run. If it's ok with you all, I would like to modify the script name and update some of the descriptions in the script.

The file currently exists in:
lis/configs/557WW-7.4-FOC/S2S_AFRICOM/generate_s2safricom_da_config_scriptfiles_fcst.py

Thanks!

@emkemp
Copy link
Contributor Author

emkemp commented Nov 10, 2021

Discover is going down at 9 am for maintenance, so you may be out of time. I would push your mail-user changes now.

- Removed remaining --mail-user entries in BCSD and other S2S
   related scripts.
- Modified name of the LIS forecast python script
- Updated documentation
@karsenau
Copy link
Contributor

@emkemp : Commit pushed over

@emkemp
Copy link
Contributor Author

emkemp commented Nov 10, 2021

Got it! @jvgeiger I think the fixes are all in.

@jvgeiger jvgeiger merged commit b8ef488 into NASA-LIS:support/lisf-557ww-7.4 Nov 15, 2021
@emkemp emkemp deleted the fix/lisf74-s2s-patches branch May 17, 2022 19:15
zdenkoheyvaert pushed a commit to zdenkoheyvaert/LISF that referenced this pull request Dec 9, 2023
Patches to S2S scripts for Nov 2021 Air Force Deliverable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants