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

Move the variational scripts to this repository #2920

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from

Conversation

guillaumevernieres
Copy link
Contributor

@guillaumevernieres guillaumevernieres commented Sep 13, 2024

Description

This PR "moves and refactors" the variational DA exscripts that were in the GDASapp to this repository. The ens. var. feature will be replicated/moved in a subsequent PR.

Waiting for 2 companion PR's:

  1. Move the variational scripts to the g-w GDASApp#1282
  2. Revive the marine jcb implementation jcb-gdas#26

ci testing: We should be able to turn on the WCDA test on Hercules

Type of change

  • Maintenance (code refactor, clean-up, new CI test, etc.)

Change characteristics

  • Is this a breaking change (a change in existing functionality)? NO
  • Does this change require a documentation update? NO
  • Does this change require an update to any of the following submodules? YES/NO (If YES, please add a link to any PRs that are pending.)
    • EMC verif-global
    • GDAS
    • GFS-utils
    • GSI
    • GSI-monitor
    • GSI-utils
    • UFS-utils
    • UFS-weather-model
    • wxflow

How has this been tested?

The latest tests were done on Hecules, earlier ones on Hera

Checklist

  • Any dependent changes have been merged and published
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • I have made corresponding changes to the documentation if necessary

ush/python/pygfs/task/marine_bmat.py Outdated Show resolved Hide resolved
ci/cases/gfsv17/ocnanal.yaml Show resolved Hide resolved
jobs/JGLOBAL_MARINE_ANALYSIS_FINALIZE Outdated Show resolved Hide resolved
jobs/JGLOBAL_MARINE_ANALYSIS_FINALIZE Show resolved Hide resolved
jobs/JGLOBAL_MARINE_ANALYSIS_CHECKPOINT Show resolved Hide resolved
ush/python/pygfs/task/marine_bmat.py Outdated Show resolved Hide resolved
ush/python/pygfs/task/marine_bmat.py Outdated Show resolved Hide resolved
ush/python/pygfs/task/marine_bmat.py Outdated Show resolved Hide resolved
ush/python/pygfs/utils/marine_da_utils.py Show resolved Hide resolved
Copy link
Contributor

@DavidNew-NOAA DavidNew-NOAA left a comment

Choose a reason for hiding this comment

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

Looks good to me. No comments beyond what others have already said.

guillaumevernieres added a commit to NOAA-EMC/GDASApp that referenced this pull request Sep 18, 2024
This PR needs to be merged before
-
[NOAA-EMC/global-workflow#2920
 
It depends on 
-
[NOAA-EMC/jcb-gdas#26

and will require an update to the `jcb-gdas` submodules.

It will break the GDASApp marine CI until the `g-w` pr is merged.
@emcbot emcbot removed the CI-Hera-Building **Bot use only** CI testing is cloning/building on Hera label Sep 19, 2024
@emcbot
Copy link

emcbot commented Sep 19, 2024

Experiment C48mx500_3DVarAOWCDA FAILED on Hera in Build# 1 with error logs:

/scratch1/NCEPDEV/global/CI/2920/RUNTESTS/COMROOT/C48mx500_3DVarAOWCDA_2a5e9bff/logs/2021032418/gdasmarineanlinit.log

Follow link here to view the contents of the above file(s): (link)

@emcbot emcbot added CI-Hera-Failed **Bot use only** CI testing on Hera for this PR has failed and removed CI-Hera-Running **Bot use only** CI testing on Hera for this PR is in-progress labels Sep 19, 2024
@emcbot
Copy link

emcbot commented Sep 19, 2024

Experiment C48mx500_3DVarAOWCDA FAILED on Hera in Build# 1 in
/scratch1/NCEPDEV/global/CI/2920/RUNTESTS/EXPDIR/C48mx500_3DVarAOWCDA_2a5e9bff

@emcbot
Copy link

emcbot commented Sep 19, 2024

Experiment C96C48_hybatmaerosnowDA FAILED on Hera in Build# 1 with error logs:

/scratch1/NCEPDEV/global/CI/2920/RUNTESTS/COMROOT/C96C48_hybatmaerosnowDA_2a5e9bff/logs/2021122018/gdasprepsnowobs.log

Follow link here to view the contents of the above file(s): (link)

@emcbot
Copy link

emcbot commented Sep 19, 2024

Experiment C96C48_hybatmaerosnowDA FAILED on Hera in Build# 1 in
/scratch1/NCEPDEV/global/CI/2920/RUNTESTS/EXPDIR/C96C48_hybatmaerosnowDA_2a5e9bff

@RussTreadon-NOAA
Copy link
Contributor

C48mx500_3DVarAOWCDA job gdasmarineanlinit.log failed with

  File "/scratch1/NCEPDEV/global/CI/2920/gfs/ush/python/pygfs/utils/marine_da_utils.py", line 86, in test_hist_date
    ncf = Dataset(histfile, 'r')
NameError: name 'Dataset' is not defined
+ JGLOBAL_MARINE_ANALYSIS_INITIALIZE[40]: status=1
+ JGLOBAL_MARINE_ANALYSIS_INITIALIZE[41]: [[ 1 -ne 0 ]]
+ JGLOBAL_MARINE_ANALYSIS_INITIALIZE[41]: exit 1

@RussTreadon-NOAA
Copy link
Contributor

C96C48_hybatmaerosnowDA may be fixed if we update guillaumevernieres:feature/marinevar with the current head of g-w develop. guillaumevernieres:feature/marinevar is one commit behind develop

@emcbot emcbot added CI-Hera-Failed **Bot use only** CI testing on Hera for this PR has failed and removed CI-Hera-Failed **Bot use only** CI testing on Hera for this PR has failed labels Sep 20, 2024
@emcbot
Copy link

emcbot commented Sep 20, 2024

CI Failed on Hera in Build# 1
Built and ran in directory /scratch1/NCEPDEV/global/CI/2920


Experiment C48mx500_3DVarAOWCDA_2a5e9bff Terminated with 0
FAIL
FAIL tasks failed and 1 dead at Thu Sep 19 21:50:32 UTC 2024
Experiment C48mx500_3DVarAOWCDA_2a5e9bff Terminated: *FAIL*
Error logs:
/scratch1/NCEPDEV/global/CI/2920/RUNTESTS/COMROOT/C48mx500_3DVarAOWCDA_2a5e9bff/logs/2021032418/gdasmarineanlinit.log
Experiment C96C48_hybatmaerosnowDA_2a5e9bff Terminated with 0
FAIL
FAIL tasks failed and 1 dead at Thu Sep 19 21:56:51 UTC 2024
Experiment C96C48_hybatmaerosnowDA_2a5e9bff Terminated: *FAIL*
Error logs:
/scratch1/NCEPDEV/global/CI/2920/RUNTESTS/COMROOT/C96C48_hybatmaerosnowDA_2a5e9bff/logs/2021122018/gdasprepsnowobs.log
Experiment C48_ATM_2a5e9bff Completed 1 Cycles: *SUCCESS* at Thu Sep 19 23:15:57 UTC 2024
Experiment C96_atm3DVar_2a5e9bff Completed 3 Cycles: *SUCCESS* at Fri Sep 20 00:17:24 UTC 2024
Experiment C96C48_hybatmDA_2a5e9bff Completed 3 Cycles: *SUCCESS* at Fri Sep 20 00:17:27 UTC 2024
Experiment C48_S2SWA_gefs_2a5e9bff Completed 1 Cycles: *SUCCESS* at Fri Sep 20 00:42:25 UTC 2024
Experiment C48_S2SW_2a5e9bff Completed 1 Cycles: *SUCCESS* at Fri Sep 20 00:47:52 UTC 2024
Experiment C96C48_ufs_hybatmDA_2a5e9bff Completed 2 Cycles: *SUCCESS* at Fri Sep 20 01:07:13 UTC 2024

@guillaumevernieres
Copy link
Contributor Author

Merged develop and pushed a fix for the marine_utils, any chance you could trigger the ci again @aerorahul ?

@aerorahul aerorahul added CI-Hera-Ready **CM use only** PR is ready for CI testing on Hera and removed CI-Hera-Failed **Bot use only** CI testing on Hera for this PR has failed CI-Hera-Ready **CM use only** PR is ready for CI testing on Hera labels Sep 20, 2024
@aerorahul aerorahul added the CI-Hera-Ready **CM use only** PR is ready for CI testing on Hera label Sep 20, 2024
@emcbot emcbot added CI-Hera-Building **Bot use only** CI testing is cloning/building on Hera CI-Hera-Running **Bot use only** CI testing on Hera for this PR is in-progress and removed CI-Hera-Ready **CM use only** PR is ready for CI testing on Hera CI-Hera-Building **Bot use only** CI testing is cloning/building on Hera labels Sep 20, 2024
# Generate COM variables from templates
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COM_OBS

RUN=${GDUMP} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this GDUMP? This should be RUN.

Copy link
Contributor

Choose a reason for hiding this comment

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

GDUMP is associated with the guess; that is the previous cycle gPDY/gcyc -- just clarifying why the q.

export CDUMP=${CDUMP:-${RUN:-"gfs"}}
export CDATE=${CDATE:-${PDY}${cyc}}
# Ignore possible spelling error (nothing is misspelled)
# shellcheck disable=SC2153
export GDUMP=${GDUMP:-"gdas"}
Copy link
Contributor

Choose a reason for hiding this comment

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

I doubt, GDUMP is used in a finalize step, but it might be needed in the __init__. Just check if that is the case.

@@ -8,11 +8,10 @@ source "${HOMEgfs}/ush/preamble.sh"
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"

export job="ocnanalrun"
export jobid="${job}.$$"
export job="marineanlchkpt"
Copy link
Contributor

Choose a reason for hiding this comment

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

why remove jobid?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no reason, will fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-Hera-Running **Bot use only** CI testing on Hera for this PR is in-progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants