-
Notifications
You must be signed in to change notification settings - Fork 204
Replace Links with cpfs/cpreq in Workflow Scripts
#4392
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
base: develop
Are you sure you want to change the base?
Changes from 24 commits
b5176ba
9e41215
74ce232
8083f46
8b69671
e77c9d2
01a6d6c
b03bac6
6d2edb3
89db7f0
ac7f3b1
669fd12
d620717
ff58b9d
f405895
de3a2d0
aaa515d
ebc1b35
b7916c0
a702cb6
39f6a2a
f9abddb
83ad0fa
518e0f5
f925bec
4ca2eb7
29ef77c
e0ac15a
4575a14
a2eaa76
b2c6142
56b787a
60a6080
9fc8f5f
84b93c7
bd56b75
fb34d14
bdbe18a
ac37ae6
a3fcd15
21e94e5
25f7b1c
4ed54d0
0cb2550
53ae6d6
4e1e174
8efcb54
e2c5613
133b466
e1a3964
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
DavidHuber-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
DavidHuber-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ device="nc | gdasloop.meta" | |
| # | ||
| export COMIN="${RUN}.${PDY}${cyc}" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Noting that
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ideally it would be defined in the j-job, since everything here is the same
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I take this back. |
||
| if [[ ! -L "${COMIN}" ]]; then | ||
| ${NLN} "${COMIN_ATMOS_GEMPAK_1p00}" "${COMIN}" | ||
| cpreq -R "${COMIN_ATMOS_GEMPAK_1p00}" "${COMIN}" | ||
| fi | ||
|
|
||
| if [[ "${envir}" == "para" ]]; then | ||
|
|
@@ -42,7 +42,7 @@ for ((fhr = 24; fhr <= 144; fhr += 24)); do | |
| YMD=${day} HH=${cyc} GRID=1p00 declare_from_tmpl "COMIN_ATMOS_GEMPAK_1p00_past:COM_ATMOS_GEMPAK_TMPL" | ||
| export COMIN="${RUN}.${day}${cycle}" | ||
| if [[ ! -L "${COMIN}" ]]; then | ||
| ${NLN} "${COMIN_ATMOS_GEMPAK_1p00_past}" "${COMIN}" | ||
| cpreq -R "${COMIN_ATMOS_GEMPAK_1p00_past}" "${COMIN}" | ||
| fi | ||
| gdfile="${COMIN}/gdas_1p00_${day}${cycle}f000" | ||
|
|
||
|
|
||
DavidHuber-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -21,7 +21,7 @@ device="nc | ${metaname}" | |||||||||||
| # | ||||||||||||
| export COMIN="${RUN}.${PDY}${cyc}" | ||||||||||||
| if [[ ! -L ${COMIN} ]]; then | ||||||||||||
| ${NLN} "${COMIN_ATMOS_GEMPAK_1p00}" "${COMIN}" | ||||||||||||
| cpreq -R "${COMIN_ATMOS_GEMPAK_1p00}" "${COMIN}" | ||||||||||||
| fi | ||||||||||||
|
||||||||||||
| if [[ ! -L ${COMIN} ]]; then | |
| ${NLN} "${COMIN_ATMOS_GEMPAK_1p00}" "${COMIN}" | |
| cpreq -R "${COMIN_ATMOS_GEMPAK_1p00}" "${COMIN}" | |
| fi | |
| cpreq -R "${COMIN_ATMOS_GEMPAK_1p00}" "${COMIN}" |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,12 +22,12 @@ metatype="comp" | |||||||||
| metaname="${mdl}_${metatype}_${cyc}.meta" | ||||||||||
| device="nc | ${metaname}" | ||||||||||
|
|
||||||||||
| export COMIN="gfs.multi" | ||||||||||
| mkdir "${COMIN}" | ||||||||||
| export COMOUT="gfs.multi" | ||||||||||
| mkdir "${COMOUT}" | ||||||||||
| for cycle in $(seq -f "%02g" -s ' ' 0 "${INTERVAL_GFS}" "${cyc}"); do | ||||||||||
| YMD=${PDY} HH=${cycle} GRID="1p00" declare_from_tmpl gempak_dir:COM_ATMOS_GEMPAK_TMPL | ||||||||||
| for file_in in "${gempak_dir}/gfs_1p00_${PDY}${cycle}f"*; do | ||||||||||
| file_out="${COMIN}/$(basename "${file_in}")" | ||||||||||
| file_out="${COMOUT}/$(basename "${file_in}")" | ||||||||||
|
||||||||||
| if [[ ! -L "${file_out}" ]]; then | ||||||||||
| ${NLN} "${file_in}" "${file_out}" | ||||||||||
| fi | ||||||||||
|
||||||||||
| if [[ ! -L "${file_out}" ]]; then | |
| ${NLN} "${file_in}" "${file_out}" | |
| fi | |
| cpreq "${file_in}" "${file_out}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The -L check can be removed.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,7 +23,7 @@ device="nc | ${metaname}" | |
| # | ||
| export COMIN="${RUN}.${PDY}${cyc}" | ||
| if [[ ! -L ${COMIN} ]]; then | ||
|
||
| ${NLN} "${COMIN_ATMOS_GEMPAK_1p00}" "${COMIN}" | ||
| cpreq -R "${COMIN_ATMOS_GEMPAK_1p00}" "${COMIN}" | ||
| fi | ||
|
|
||
| # DEFINE YESTERDAY | ||
|
|
@@ -255,6 +255,7 @@ if [[ ${cyc} == 00 ]]; then | |
| HPCECMWF_m1=ecmwf.${PDY} | ||
| export HPCUKMET=ukmet.${PDYm1} | ||
| if [[ ! -L "${HPCECMWF}" ]]; then | ||
| # TODO: remove live links and refer https://github.com/NOAA-EMC/global-workflow/issues/4406 | ||
| ${NLN} "${COMINecmwf}/ecmwf.${PDY}/gempak" "${HPCECMWF}" | ||
| fi | ||
| if [[ ! -L "${HPCECMWF_m1}" ]]; then | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.