-
Notifications
You must be signed in to change notification settings - Fork 166
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
Cycling on native grid and create JEDI-based analysis calc job #2949
Draft
DavidNew-NOAA
wants to merge
57
commits into
NOAA-EMC:develop
Choose a base branch
from
DavidNew-NOAA:feature/calcanl
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+485
−62
Draft
Changes from 52 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
36d9e2a
Initial commit
DavidNew-NOAA 3ac6a0e
Update gdas hash
DavidNew-NOAA e56126d
Update GDAS hash
DavidNew-NOAA 5436a6b
Fix typo
DavidNew-NOAA b5e231a
Saving progress
DavidNew-NOAA 777641a
Update
DavidNew-NOAA 86b6ad4
Merge
DavidNew-NOAA 42122d3
Initial commit
DavidNew-NOAA 26d365b
Merge branch 'develop' into feature/calcanl
DavidNew-NOAA 653453f
Update gdas hash
DavidNew-NOAA 8333e32
Update GDAS hash and namelist to read increment on native grid
DavidNew-NOAA 292b55a
Saving progress
DavidNew-NOAA bfc06c2
Update GDAS hash
DavidNew-NOAA dc59de4
Update GDAS hash
DavidNew-NOAA 13e35d0
Update GDAS hash
DavidNew-NOAA ac8d31d
Update GDAS hash
DavidNew-NOAA 84723c8
Update GDAS hash and update finalize jobs in atmanl and atmensanl
DavidNew-NOAA 09bf586
Merge branch 'develop' into feature/cubeinc
DavidNew-NOAA 61d201a
pynorms
DavidNew-NOAA 1de0c62
Update GDAS hash
DavidNew-NOAA 19e6f1c
Update GDAS hash
DavidNew-NOAA 1a21af0
Merge branch 'develop' into feature/calcanl
DavidNew-NOAA 89e8dd4
pynorms
DavidNew-NOAA f123d9a
Stage multifile (FMS) increments and update GDAS hash
DavidNew-NOAA 0430bef
Update GDAS hash
DavidNew-NOAA ad27e15
Update GDAS hash
DavidNew-NOAA 07d1fff
Update GDAS hash and update finalize jobs in atmanl and atmensanl
DavidNew-NOAA 01166d7
Add new UPP links to .gitignore (#2904)
DavidHuber-NOAA 3805262
pynorms
DavidNew-NOAA c9f40d3
Stage multifile (FMS) increments and update GDAS hash
DavidNew-NOAA dc4cf6e
Update GDAS hash
DavidNew-NOAA fa71bf4
Merge branch 'feature/cubeinc' of https://github.com/DavidNew-NOAA/gl…
DavidNew-NOAA 7f2327b
Fix bug and update GDAS hash
DavidNew-NOAA 2d9b9b6
Update gdas hash and update calcanl.py
DavidNew-NOAA e832805
Merge branch 'feature/cubeinc' into feature/calcanl
DavidNew-NOAA 509742d
Merge branch 'develop' into feature/calcanl
DavidNew-NOAA 9a95e54
Merge branch 'develop' into feature/calcanl
DavidNew-NOAA 93076f5
Update UFS hash
DavidNew-NOAA eaaf1fd
Update
DavidNew-NOAA e99729e
Merge branch 'develop' into feature/calcanl
DavidNew-NOAA 0f419a0
Update GDAS hash and save progress on calcanl.py
DavidNew-NOAA 31cea06
Update
DavidNew-NOAA 8af11f2
Update GDASApp hash
DavidNew-NOAA bd6afc2
Merge branch 'develop' into feature/calcanl
DavidNew-NOAA f3d3449
Update
DavidNew-NOAA 4001249
Merge branch 'develop' into feature/calcanl
DavidNew-NOAA 21b10da
pynorms
DavidNew-NOAA 02b27b9
Add comment blocks to calcanl.py methods
DavidNew-NOAA dd6c182
pynorms
DavidNew-NOAA 1b12887
Fix indentation error and allocate more appropriate resources for job
DavidNew-NOAA 2932cc2
Shell norms
DavidNew-NOAA 0eaa63d
Rename some stuff
DavidNew-NOAA 693e6d1
Rename some stuff per comment from Rahul
DavidNew-NOAA dff1e59
Missed renaming of some things
DavidNew-NOAA 24f5029
Update GDASApp hash
DavidNew-NOAA 6aa3b96
Update analcalc name in two more corners of the GW
DavidNew-NOAA 65f66f4
Shell norms and update UFS hash
DavidNew-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#! /usr/bin/env bash | ||
|
||
source "${HOMEgfs}/ush/preamble.sh" | ||
source "${HOMEgfs}/ush/jjob_header.sh" -e "calcanl" -c "base calcanl" | ||
|
||
############################################## | ||
# Set variables used in the script | ||
############################################## | ||
|
||
GDATE=$(date --utc +%Y%m%d%H -d "${PDY} ${cyc} - ${assim_freq} hours") | ||
gPDY=${GDATE:0:8} | ||
gcyc=${GDATE:8:2} | ||
GDUMP="gdas" | ||
|
||
############################################## | ||
# Begin JOB SPECIFIC work | ||
############################################## | ||
|
||
# Generate COM variables from templates | ||
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \ | ||
COM_ATMOS_ANALYSIS | ||
RUN=${GDUMP} YMD=${gPDY} HH=${gcyc} declare_from_tmpl -rx \ | ||
COM_ATMOS_HISTORY_PREV:COM_ATMOS_HISTORY_TMPL | ||
|
||
############################################## | ||
# Run relevant script | ||
############################################## | ||
|
||
EXSCRIPT=${GDASATMRUNSH:-${SCRgfs}/exglobal_atm_calc_analysis.py} | ||
${EXSCRIPT} | ||
status=$? | ||
[[ ${status} -ne 0 ]] && exit "${status}" | ||
|
||
############################################## | ||
# End JOB SPECIFIC work | ||
############################################## | ||
|
||
############################################## | ||
# Final processing | ||
############################################## | ||
|
||
if [[ -e "${pgmout}" ]] ; then | ||
cat "${pgmout}" | ||
fi | ||
|
||
############################################## | ||
# Remove the Temporary working directory | ||
############################################## | ||
|
||
cd "${DATAROOT}" || ( echo "FATAL ERROR: ${DATAROOT} does not exist, ABORT!"; exit 1 ) | ||
if [[ ${KEEPDATA} = "NO" ]]; then | ||
rm -rf "${DATA}" | ||
fi | ||
|
||
exit 0 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#! /usr/bin/env bash | ||
|
||
source "${HOMEgfs}/ush/preamble.sh" | ||
|
||
############################################################### | ||
# Source UFSDA workflow modules | ||
. "${HOMEgfs}/ush/load_ufsda_modules.sh" | ||
status=$? | ||
[[ ${status} -ne 0 ]] && exit "${status}" | ||
|
||
export job="calcanl" | ||
export jobid="${job}.$$" | ||
|
||
############################################################### | ||
# Execute the JJOB | ||
"${HOMEgfs}/jobs/JGLOBAL_ATM_CALC_ANALYSIS" | ||
status=$? | ||
exit "${status}" | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#! /usr/bin/env bash | ||
|
||
########## config.calcanl ########## | ||
# Diagnostic amospheric analysis calculation specific | ||
|
||
echo "BEGIN: config.calcanl" | ||
|
||
export layout_x_calcanl=2 | ||
export layout_y_calcanl=2 | ||
|
||
# Get task specific resources | ||
. "${EXPDIR}/config.resources" calcanl | ||
|
||
export JCB_BASE_YAML=${PARMgfs}/gdas/atm/jcb-base.yaml.j2 | ||
export JCB_ALGO=fv3jedi_calcanl | ||
export JEDIEXE=${EXECgfs}/fv3jedi_calcanl.x | ||
|
||
if [[ ${DOHYBVAR} = "YES" ]]; then | ||
export CASE_ANL=${CASE_ENS} | ||
Check notice Code scanning / shellcheck Possible misspelling: CASE_ENS may not be assigned. Did you mean CASE_ANL? Note
Possible misspelling: CASE_ENS may not be assigned. Did you mean CASE_ANL?
|
||
else | ||
export CASE_ANL=${CASE} | ||
fi | ||
|
||
export JEDI_FIX_YAML="${PARMgfs}/gdas/atm_jedi_fix.yaml.j2" | ||
|
||
echo "END: config.calcanl" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env python3 | ||
# exglobal_atm_calc_analysis.py | ||
# This script creates an CalcAnalysis object | ||
# and runs the execute method which executes | ||
# the diagnostic global analysis calculation | ||
import os | ||
|
||
from wxflow import Logger, cast_strdict_as_dtypedict | ||
from pygfs.task.calcanl import CalcAnalysis | ||
|
||
# Initialize root logger | ||
logger = Logger(level='DEBUG', colored_log=True) | ||
|
||
|
||
if __name__ == '__main__': | ||
|
||
# Take configuration from environment and cast it as python dictionary | ||
config = cast_strdict_as_dtypedict(os.environ) | ||
|
||
# Instantiate the CalcAnalysis task | ||
CalcAnl = CalcAnalysis(config, 'calcanl') | ||
|
||
# Initialize | ||
CalcAnl.initialize_jedi() | ||
CalcAnl.initialize() | ||
|
||
# Execute JEDI application | ||
CalcAnl.execute(config.APRUN_CALCANL) | ||
|
||
# Finalize | ||
CalcAnl.finalize() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ufs_model.fd
updated
73 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / shellcheck
Possible misspelling: PDY may not be assigned. Did you mean gPDY? Note