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

Adding new XML generation tool and example confs. #330

Open
wants to merge 46 commits into
base: dev1_merge_tmp
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
23f6ab2
Adding new XML generation tool and example confs.
christinaholtNOAA Apr 18, 2022
bedca14
Add Gaea as a supported platform for the regional_workflow (#734)
mark-a-potts Apr 22, 2022
e5e0042
Add more parameters to CSV file containing WE2E test info (#740)
gsketefian Apr 22, 2022
1bd9d5f
Update directory structure of NCO mode (#743)
chan-hoo Apr 25, 2022
d013436
Default CCPP physics option is FV3_GFS_v16 (#746)
natalie-perlin Apr 25, 2022
bf0fae9
Adds an alternative python workflow generation path (#698)
danielabdi-noaa Apr 26, 2022
e2fa6fc
Fix typo and crontab issue on wcoss dell in workflow python scripts (…
chan-hoo Apr 28, 2022
b29822c
Add new WE2E configs (#748)
EdwardSnyder-NOAA Apr 28, 2022
c942b84
Added a fixed WoF grid and the python tool to determine the write com…
ywangwof Apr 29, 2022
6800643
Replace env with modulefiles in scripts (#752)
chan-hoo May 2, 2022
c655228
Updating some docs in the code.
christinaholtNOAA May 2, 2022
bd13e16
WE2E script improvements for usability (#745)
gsketefian May 2, 2022
ef63cc0
Standardize static data across Tier-1 platforms; fix and improve IC a…
mkavulich May 3, 2022
187f16c
Bug fixes (grid size + suppress screen output from module load) (#756)
gsketefian May 5, 2022
00e2155
Update default SPP ISEED array in config_defaults.sh to use unique va…
JeffBeck-NOAA May 9, 2022
89a0c7f
Update workflow python scripts (#760)
chan-hoo May 9, 2022
1ec6851
Change output file name of run_post to meet NCO standards (#758)
chan-hoo May 10, 2022
d4a6d43
Add POST_OUTPUT_DOMAIN_NAME to WE2E tests for new grids (#763)
chan-hoo May 10, 2022
11dc291
Modifications to `CODEOWNERS` file (#757)
gsketefian May 13, 2022
961300d
Adding a python utility for summarizing compute. (#769)
christinaholtNOAA May 16, 2022
23f5d41
Add github actions for python unittests. (#747)
danielabdi-noaa May 16, 2022
86f8b04
Update sample script for NCO mode (#771)
chan-hoo May 17, 2022
737c687
Feature/noaacloud (#767)
mark-a-potts May 19, 2022
fe820b0
removed cheyenne-specific crontab editing section (#773)
mark-a-potts May 19, 2022
de82b63
Pin down hera miniconda3 module file version. (#770)
christinaholtNOAA May 19, 2022
6a6ebfd
update staged data dir (#774)
EdwardSnyder-NOAA May 20, 2022
3d1cac0
update IC/LBC file paths to match new IC/LBC file structure (#766)
EdwardSnyder-NOAA May 26, 2022
39de1f9
add a machine file for MacOS (#777)
natalie-perlin May 26, 2022
32aa6f2
Add columns for relative test and time step to CSV file containing WE…
gsketefian May 31, 2022
bc68419
Bug fix for calculation of number of time steps for a given WE2E test…
gsketefian Jun 1, 2022
320841a
Bugfix: Pass domain name to python plotting scripts (#783)
gsketefian Jun 2, 2022
d45d2ac
Update scripts to work with the latest hashes of UFS_UTILS and UPP (#…
chan-hoo Jun 9, 2022
0884378
adding new e2e tests (#792)
EdwardSnyder-NOAA Jun 10, 2022
7f23e97
[develop] Update scripts to run with the latest hash of ufs weather m…
chan-hoo Jun 23, 2022
27e5723
[develop] Update MET/METplus versions and configuration files (#779)
willmayfield Jun 24, 2022
9e4f638
add a linux.sh machine file (a template) (#798) (#803)
gspetro-NOAA Jun 27, 2022
5359633
[develop] Rename variables related to GFDLgrid-type grids (#787)
gsketefian Jun 27, 2022
de59f5c
Remove un-readable path to systemdir on Hera. (#806)
christinaholtNOAA Jun 30, 2022
2e336c1
[develop] Add MET/METplus to Jet (#799)
EdwardSnyder-NOAA Jul 1, 2022
067f66f
Merge remote-tracking branch 'origin/develop' into xml_generator
christinaholtNOAA Jul 5, 2022
0c77e1b
Adding configs for cold start and prep.
christinaholtNOAA Jul 6, 2022
6cb4bbf
Better comments and CLI parsing.
christinaholtNOAA Jul 6, 2022
551fadd
Adding post workflow.
christinaholtNOAA Jul 7, 2022
6e8f712
Clean up existing workflows.
christinaholtNOAA Jul 7, 2022
e71fd9e
Adding draft for verification workflows.
christinaholtNOAA Jul 7, 2022
d71df90
Cleanup jobname, log, and default_task naming.
christinaholtNOAA Jul 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# These owners will be the default owners for everything in the repo.
#* @defunkt
* @mkavulich @gsketefian @JeffBeck-NOAA @RatkoVasic-NOAA @BenjaminBlake-NOAA @ywangwof @chan-hoo @BenjaminBlake-NOAA @RatkoVasic-NOAA @panll @christinaholtNOAA @christopherwharrop-noaa @danielabdi-noaa @mark-a-potts @jkbk2004 @willmayfield @jwolff-ncar @dmwright526
* @mkavulich @gsketefian @JeffBeck-NOAA @RatkoVasic-NOAA @BenjaminBlake-NOAA @ywangwof @chan-hoo @panll @christinaholtNOAA @christopherwharrop-noaa @danielabdi-noaa @mark-a-potts @jkbk2004 @willmayfield @dmwright526 @gspetro-NOAA @natalie-perlin @EdwardSnyder-NOAA

# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/python_unittests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Python unittests
on: [push, pull_request]
jobs:

python_unittests:
name: Python unittests
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Install dependencies
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install python3 python3-pip netcdf-bin
sudo pip3 install pyyaml jinja2 f90nml
sudo pip3 install numpy matplotlib basemap

# Run python unittests
- name: Run python unittests
run: |
cd ush
python3 -m unittest -b python_utils/test_python_utils.py
python3 -m unittest -b *.py

2 changes: 0 additions & 2 deletions modulefiles/tasks/cheyenne/run_vx.local
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#%Module
module load pylib_regional_workflow
module use /glade/p/ral/jntp/MET/MET_releases/modulefiles
module load met/10.0.0
6 changes: 6 additions & 0 deletions modulefiles/tasks/gaea/make_grid.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#%Module
module use /lustre/f2/pdata/esrl/gsd/contrib/modulefiles
module load rocoto
module load miniconda3

setenv SRW_ENV regional_workflow
6 changes: 6 additions & 0 deletions modulefiles/tasks/gaea/make_ics.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#%Module
module use /lustre/f2/pdata/esrl/gsd/contrib/modulefiles
module load rocoto
module load miniconda3

setenv SRW_ENV regional_workflow
6 changes: 6 additions & 0 deletions modulefiles/tasks/gaea/make_lbcs.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#%Module
module use /lustre/f2/pdata/esrl/gsd/contrib/modulefiles
module load rocoto
module load miniconda3

setenv SRW_ENV regional_workflow
6 changes: 6 additions & 0 deletions modulefiles/tasks/gaea/run_fcst.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#%Module
module use /lustre/f2/pdata/esrl/gsd/contrib/modulefiles
module load rocoto
module load miniconda3

setenv SRW_ENV regional_workflow
5 changes: 5 additions & 0 deletions modulefiles/tasks/gaea/run_vx.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#%Module

module use -a /contrib/anaconda/modulefiles
module load intel/18.0.5.274
module load anaconda/latest
4 changes: 2 additions & 2 deletions modulefiles/tasks/hera/get_obs.local
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module purge

module load hpss

module use -a /contrib/miniconda3/modulefiles
module load miniconda3
module use /contrib/miniconda3/modulefiles
module load miniconda3/4.5.12

setenv SRW_ENV pygraf
4 changes: 2 additions & 2 deletions modulefiles/tasks/hera/miniconda_regional_workflow
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#%Module
module use -a /contrib/miniconda3/modulefiles
module load miniconda3
module use /contrib/miniconda3/modulefiles
module load miniconda3/4.5.12

setenv SRW_ENV regional_workflow
2 changes: 0 additions & 2 deletions modulefiles/tasks/hera/run_vx.local
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
module use -a /contrib/anaconda/modulefiles
module load intel/18.0.5.274
module load anaconda/latest
module use -a /contrib/met/modulefiles/
module load met/10.0.0
4 changes: 2 additions & 2 deletions modulefiles/tasks/jet/miniconda_regional_workflow
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#%Module
module use -a /contrib/miniconda3/modulefiles
module load miniconda3
module use /contrib/miniconda3/modulefiles
module load miniconda3/4.5.12

setenv SRW_ENV regional_workflow
5 changes: 5 additions & 0 deletions modulefiles/tasks/jet/run_vx.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#%Module

module use -a /contrib/anaconda/modulefiles
module load intel/18.0.5.274
module load anaconda/5.3.1
7 changes: 7 additions & 0 deletions modulefiles/tasks/noaacloud/get_extrn_ics.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#%Module

module load miniconda_regional_workflow
module load rocoto
prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin
setenv SRW_ENV regional_workflow

6 changes: 6 additions & 0 deletions modulefiles/tasks/noaacloud/get_extrn_lbcs.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#%Module

module load miniconda_regional_workflow
module load rocoto
prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin
setenv SRW_ENV regional_workflow
12 changes: 12 additions & 0 deletions modulefiles/tasks/noaacloud/make_grid.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#%Module

module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core
module load stack-intel
module load stack-intel-oneapi-mpi
module load netcdf-c
module load netcdf-fortran

module load miniconda_regional_workflow
module load rocoto
prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin
setenv SRW_ENV regional_workflow
14 changes: 14 additions & 0 deletions modulefiles/tasks/noaacloud/make_ics.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#%Module

module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core
module load stack-intel
module load stack-intel-oneapi-mpi
module load netcdf-c
module load netcdf-fortran
module load libpng
module load jasper

module load miniconda_regional_workflow
module load rocoto
prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin
setenv SRW_ENV regional_workflow
14 changes: 14 additions & 0 deletions modulefiles/tasks/noaacloud/make_lbcs.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#%Module

module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core
module load stack-intel
module load stack-intel-oneapi-mpi
module load netcdf-c
module load netcdf-fortran
module load libpng
module load jasper

module load miniconda_regional_workflow
module load rocoto
prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin
setenv SRW_ENV regional_workflow
12 changes: 12 additions & 0 deletions modulefiles/tasks/noaacloud/make_orog.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#%Module

module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core
module load stack-intel
module load stack-intel-oneapi-mpi
module load netcdf-c
module load netcdf-fortran

module load miniconda_regional_workflow
module load rocoto
prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin
setenv SRW_ENV regional_workflow
12 changes: 12 additions & 0 deletions modulefiles/tasks/noaacloud/make_sfc_climo.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#%Module

module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core
module load stack-intel
module load stack-intel-oneapi-mpi
module load netcdf-c
module load netcdf-fortran

module load miniconda_regional_workflow
module load rocoto
prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin
setenv SRW_ENV regional_workflow
5 changes: 5 additions & 0 deletions modulefiles/tasks/noaacloud/miniconda_regional_workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#%Module
module use -a /contrib/GST/miniconda3/modulefiles
module load miniconda3/4.10.3

setenv SRW_ENV regional_workflow
14 changes: 14 additions & 0 deletions modulefiles/tasks/noaacloud/run_fcst.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#%Module

module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core
module load stack-intel
module load stack-intel-oneapi-mpi
module load netcdf-c
module load netcdf-fortran
module load libpng
module load jasper

module load miniconda_regional_workflow
module load rocoto
prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin
setenv SRW_ENV regional_workflow
14 changes: 14 additions & 0 deletions modulefiles/tasks/noaacloud/run_post.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#%Module

module use /contrib/spack-stack/apps/srw-app-test/modulefiles/Core
module load stack-intel
module load stack-intel-oneapi-mpi
module load netcdf-c
module load netcdf-fortran
module load libpng
module load jasper

module load miniconda_regional_workflow
module load rocoto
prepend-path PATH /contrib/GST/miniconda/envs/regional_workflow/bin
setenv SRW_ENV regional_workflow
3 changes: 0 additions & 3 deletions modulefiles/tasks/wcoss_dell_p3/run_vx.local
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#%Module

module unload netcdf

module use /gpfs/dell2/emc/verification/noscrub/emc.metplus/modulefiles
module load met/10.0.0
4 changes: 2 additions & 2 deletions scripts/exregional_get_extrn_mdl_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ elif [ "${ICS_OR_LBCS}" = "LBCS" ]; then
input_file_path=${EXTRN_MDL_SOURCE_BASEDIR_LBCS:-$EXTRN_MDL_SYSBASEDIR_LBCS}
fi

data_stores="hpss aws"
data_stores="${EXTRN_MDL_DATA_STORES}"

yyyymmddhh=${extrn_mdl_cdate:0:10}
yyyy=${yyyymmddhh:0:4}
Expand Down Expand Up @@ -141,7 +141,7 @@ if [ -n "${file_names:-}" ] ; then
fi

if [ -n "${input_file_path:-}" ] ; then
data_stores="disk hpss aws"
data_stores="disk $data_stores"
additional_flags="$additional_flags \
--input_file_path ${input_file_path}"
fi
Expand Down
8 changes: 4 additions & 4 deletions scripts/exregional_make_grid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ if [ "${GRID_GEN_METHOD}" = "GFDLgrid" ]; then
# Set local variables needed in the call to the executable that generates
# a GFDLgrid-type grid.
#
nx_t6sg=$(( 2*GFDLgrid_RES ))
nx_t6sg=$(( 2*GFDLgrid_NUM_CELLS ))
grid_name="${GRID_GEN_METHOD}"
#
# Call the executable that generates the grid file. Note that this call
Expand Down Expand Up @@ -402,15 +402,15 @@ res_equiv=${res_equiv//$'\n'/}
#-----------------------------------------------------------------------
#
if [ "${GRID_GEN_METHOD}" = "GFDLgrid" ]; then
if [ "${GFDLgrid_USE_GFDLgrid_RES_IN_FILENAMES}" = "TRUE" ]; then
CRES="C${GFDLgrid_RES}"
if [ "${GFDLgrid_USE_NUM_CELLS_IN_FILENAMES}" = "TRUE" ]; then
CRES="C${GFDLgrid_NUM_CELLS}"
else
CRES="C${res_equiv}"
fi
elif [ "${GRID_GEN_METHOD}" = "ESGgrid" ]; then
CRES="C${res_equiv}"
fi
set_file_param "${GLOBAL_VAR_DEFNS_FP}" "CRES" "\"$CRES\""
set_file_param "${GLOBAL_VAR_DEFNS_FP}" "CRES" "'$CRES'"
#
#-----------------------------------------------------------------------
#
Expand Down
1 change: 0 additions & 1 deletion scripts/exregional_make_ics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@ fi
#
settings="
'config': {
'fix_dir_input_grid': ${FIXgsm},
'fix_dir_target_grid': ${FIXLAM},
'mosaic_file_target_grid': ${FIXLAM}/${CRES}${DOT_OR_USCORE}mosaic.halo$((10#${NH4})).nc,
'orog_dir_target_grid': ${FIXLAM},
Expand Down
1 change: 0 additions & 1 deletion scripts/exregional_make_lbcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@ list file has not specified for this external LBC model (EXTRN_MDL_NAME_LBCS):
#
settings="
'config': {
'fix_dir_input_grid': ${FIXgsm},
'fix_dir_target_grid': ${FIXLAM},
'mosaic_file_target_grid': ${FIXLAM}/${CRES}${DOT_OR_USCORE}mosaic.halo$((10#${NH4})).nc,
'orog_dir_target_grid': ${FIXLAM},
Expand Down
2 changes: 1 addition & 1 deletion scripts/exregional_make_orog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ if [ "${GRID_GEN_METHOD}" = "GFDLgrid" ]; then
#
# Really depends on what EMC wants to do.

res="${GFDLgrid_RES}"
res="${GFDLgrid_NUM_CELLS}"
# stretch_fac="${GFDLgrid_STRETCH_FAC}"
refine_ratio="${GFDLgrid_REFINE_RATIO}"

Expand Down
1 change: 1 addition & 0 deletions scripts/exregional_run_ensgridvx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export METPLUS_CONF
export MET_CONFIG
export MODEL
export NET
export POST_OUTPUT_DOMAIN_NAME
export NUM_ENS_MEMBERS
export NUM_PAD
export LOG_SUFFIX
Expand Down
1 change: 1 addition & 0 deletions scripts/exregional_run_ensgridvx_mean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export METPLUS_CONF
export MET_CONFIG
export MODEL
export NET
export POST_OUTPUT_DOMAIN_NAME
export INPUT_BASE
export LOG_SUFFIX

Expand Down
1 change: 1 addition & 0 deletions scripts/exregional_run_ensgridvx_prob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export METPLUS_CONF
export MET_CONFIG
export MODEL
export NET
export POST_OUTPUT_DOMAIN_NAME
export LOG_SUFFIX

#
Expand Down
1 change: 1 addition & 0 deletions scripts/exregional_run_enspointvx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export METPLUS_CONF
export MET_CONFIG
export MODEL
export NET
export POST_OUTPUT_DOMAIN_NAME
export NUM_ENS_MEMBERS

${METPLUS_PATH}/ush/run_metplus.py \
Expand Down
1 change: 1 addition & 0 deletions scripts/exregional_run_enspointvx_mean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export METPLUS_CONF
export MET_CONFIG
export MODEL
export NET
export POST_OUTPUT_DOMAIN_NAME

${METPLUS_PATH}/ush/run_metplus.py \
-c ${METPLUS_CONF}/common.conf \
Expand Down
1 change: 1 addition & 0 deletions scripts/exregional_run_enspointvx_prob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export METPLUS_CONF
export MET_CONFIG
export MODEL
export NET
export POST_OUTPUT_DOMAIN_NAME

${METPLUS_PATH}/ush/run_metplus.py \
-c ${METPLUS_CONF}/common.conf \
Expand Down
9 changes: 4 additions & 5 deletions scripts/exregional_run_fcst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ create_symlink_to_file target="$target" symlink="$symlink" \
#target="${FIXLAM}/${CRES}${DOT_OR_USCORE}grid.tile${TILE_RGNL}.halo${NH3}.nc"
#if [ "${RUN_TASK_MAKE_SFC_CLIMO}" = "TRUE" ] && \
# [ "${GRID_GEN_METHOD}" = "GFDLgrid" ] && \
# [ "${GFDLgrid_USE_GFDLgrid_RES_IN_FILENAMES}" = "FALSE" ]; then
# symlink="C${GFDLgrid_RES}${DOT_OR_USCORE}grid.tile${TILE_RGNL}.nc"
# [ "${GFDLgrid_USE_NUM_CELLS_IN_FILENAMES}" = "FALSE" ]; then
# symlink="C${GFDLgrid_NUM_CELLS}${DOT_OR_USCORE}grid.tile${TILE_RGNL}.nc"
#else
# symlink="${CRES}${DOT_OR_USCORE}grid.tile${TILE_RGNL}.nc"
#fi
Expand Down Expand Up @@ -514,7 +514,6 @@ if [ ${WRITE_DOPOST} = "TRUE" ]; then
yyyymmdd=${cdate:0:8}
hh=${cdate:8:2}
cyc=$hh
tmmark="tm00"
fmn="00"

if [ "${RUN_ENVIR}" = "nco" ]; then
Expand All @@ -539,15 +538,15 @@ if [ ${WRITE_DOPOST} = "TRUE" ]; then
post_mn=${post_time:10:2}
post_mn_or_null=""
post_fn_suffix="GrbF${fhr_d}"
post_renamed_fn_suffix="f${fhr}${post_mn_or_null}.${tmmark}.grib2"
post_renamed_fn_suffix="f${fhr}${post_mn_or_null}.${POST_OUTPUT_DOMAIN_NAME}.grib2"

basetime=$( $DATE_UTIL --date "$yyyymmdd $hh" +%y%j%H%M )
symlink_suffix="_${basetime}f${fhr}${post_mn}"
fids=( "prslev" "natlev" )
for fid in "${fids[@]}"; do
FID=$(echo_uppercase $fid)
post_orig_fn="${FID}.${post_fn_suffix}"
post_renamed_fn="${NET}.t${cyc}z.${fid}${post_renamed_fn_suffix}"
post_renamed_fn="${NET}.t${cyc}z.${fid}.${post_renamed_fn_suffix}"
mv_vrfy ${run_dir}/${post_orig_fn} ${post_renamed_fn}
ln_vrfy -fs ${post_renamed_fn} ${FID}${symlink_suffix}
done
Expand Down
Loading