Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
45 changes: 34 additions & 11 deletions jobs/JREGIONAL_RUN_PYTHON_GRAPHICS
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,17 @@ else
zip_dir="${CYCLE_DIR}${SLASH_ENSMEM_SUBDIR}/nclprd"
fi

# Use a subdirectory for input from alternative wgrib2-produced grids.
if [ "${TILES:-}" = "full" ] ; then
subdir=${postprd_dir}/${TILELABEL:-}_grid
if [ -d ${subdir} ] ; then
postprd_dir=${subdir}
run_dir=${run_dir}/${TILELABEL:-}_grid
zip_dir=${zip_dir}/${TILELABEL:-}_grid
fi
fi


# Choose an appropriate sites file for the grid
sites_file=conus_raobs.txt
tiles=${TILES:-full}

if [[ "${PREDEF_GRID_NAME}" =~ "AK" || \
"${TILELABEL:-}" == "242" ]] ; then
"${TILELABEL:-}" == "242" || \
"${TILELABEL:-}" == "hrrrak" ]] ; then
sites_file=alaska_raobs.txt
tiles=${TILES:-full}
tiles=${TILES:-hrrrak}

elif [[ "${PREDEF_GRID_NAME}" =~ "RAP" || \
"${PREDEF_GRID_NAME}" =~ "NA" || \
Expand All @@ -102,6 +94,37 @@ elif [[ "${PREDEF_GRID_NAME}" =~ "RAP" || \
sites_file=na_raobs.txt
tiles=${TILES:-full}

elif [[ "${TILELABEL:-}" = hrrr ]] ; then

# This domain comes from a NA domain, so wait longer.
age=5
wait_time=15
tiles=${TILES:-hrrr}

fi

# Use a subdirectory for input from alternative wgrib2-produced grids.
wgrib2_grids=( hrrr hrrrak full )
first_grid=${tiles%%,*} # First in a comma separated list
first_grid=${first_grid%%_*} # First part of an underscore separated string (requirement set by Rocoto)

sub_conus_grids=( SE SC SW NE NC NW \
ATL CA-NV CentralCA CHI-DET DCArea EastCO GreatLakes NYC-BOS SEA-POR SouthCA SouthFL VortexSE )

sub_ak_grids=( AKRange Anchorage Juneau )

if [[ "${sub_conus_grids[*]}" =~ $first_grid ]] ; then
subdir=hrrr_grid
elif [[ "${sub_ak_grids[*]}" =~ $first_grid ]] ; then
subdir=hrrrak_grid
elif [[ "${wgrib2_grids[*]}" =~ $first_grid ]] ; then
subdir=${first_grid:-}_grid
fi

if [ -d ${postprd_dir}/${subdir} ] ; then
postprd_dir=${postprd_dir}/${subdir}
run_dir=${run_dir}/${subdir:-}
zip_dir=${zip_dir}/${subdir:-}
fi

# Choose the appropriate file template for graphics type
Expand Down
7 changes: 4 additions & 3 deletions ush/config.sh.RRFS_NA_3km
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ NCL_REGION="conus"
MODEL="RRFS_NA_3km"
ADDNL_OUTPUT_GRIDS=( "hrrr" "hrrrak" )

TILE_LABELS="NA"
TILE_SETS="full"
TILE_LABELS="NA hrrr_regions1 hrrr_regions2 hrrr_tiles1 hrrr_tiles2 hrrr_tiles3
hrrr_tiles4 hrrrak_tiles"
TILE_SETS="full SE,SC,SW NE,NC,NW ATL,CA-NV,CentralCA CHI-DET,DCArea,EastCO \
GreatLakes,NYC-BOS,SEA-POR SouthCA,SouthFL,VortexSE AKRange,Anchorage,Juneau"

CLEAN_OLDPROD_HRS="48"
CLEAN_OLDRUN_HRS="24"
Expand All @@ -147,4 +149,3 @@ COMINgfs=""
STMP="/lfs4/BMC/nrtrr/NCO_dirs/stmp" # Path to directory STMP that mostly contains input files.
PTMP="/lfs4/BMC/nrtrr/NCO_dirs/ptmp" # Path to directory STMP that mostly contains input files.
NWGES="/lfs4/BMC/nrtrr/NCO_dirs/nwges" # Path to directory NWGES that save boundary, cold initial, restart files

4 changes: 2 additions & 2 deletions ush/generate_FV3LAM_wflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ settings="\
#
# graphics related parameters
#
'tilelabels': ${TILE_LABELS}
'tilesets': ${TILE_SETS}
'tilelabels': \"${TILE_LABELS}\"
'tilesets': \"${TILE_SETS}\"
#
# retrospective experiments
#
Expand Down
2 changes: 1 addition & 1 deletion ush/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ fi
#
if [ ${#ADDNL_OUTPUT_GRIDS[@]} -ne 0 ]; then
for grid in ${ADDNL_OUTPUT_GRIDS[@]} ; do
TILE_SETS="${TILE_SETS} full"
TILE_SETS="${TILE_SETS} ${grid}"
TILE_LABELS="${TILE_LABELS} ${grid}"
done
fi
Expand Down