Skip to content

Commit

Permalink
Put RadMon regional html in repository and add scripting for regional…
Browse files Browse the repository at this point in the history
… web site generation (NOAA-EMC#154)

* Ref NOAA-EMC#153

Add regional html files and scripting changes to
support regional web site generation.

* Ref NOAA-EMC#153

File cleanup.
  • Loading branch information
EdwardSafford-NOAA authored Jan 21, 2025
1 parent ec12cad commit 8f58a20
Show file tree
Hide file tree
Showing 17 changed files with 5,971 additions and 1,028 deletions.
39 changes: 30 additions & 9 deletions src/Radiance_Monitor/image_gen/html/Install_html.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@
# usage
#--------------------------------------------------------------------
function usage {
echo "Usage: Install_html.sh suffix [-t|--tank]"
echo "Usage: Install_html.sh suffix -t|--tank [-r|--run -a|--area]"
echo " Suffix is data source identifier that matches data in "
echo " the $TANKDIR/stats directory."
echo " -t | --tank parent directory to the radmon data file location. This"
echo " will be extended by \$RADMON_SUFFIX, \$RUN, and \$PDATE to locate the"
echo " extracted radmon data."
echo " -t | --tank parent directory to the radmon data file location. This"
echo " will be extended by /$RADMON_SUFFIX, /$RUN, and /$PDATE to locate the"
echo " extracted radmon data. Note if using internal RadMon format for data"
echo " then stop at '/nbns' and do not include '/stats' in tank."
echo " -r | --run Run value for data source. Default is 'gdas'."
echo " -a | --area Area value for data source. Valid values are 'glb' or 'rgn'"
echo " indicating global or regional data source. The default is 'glb'."
echo ""
}

Expand All @@ -28,17 +32,17 @@ echo ""

nargs=$#

if [[ $nargs -lt 1 || $nargs -gt 3 ]]; then
if [[ $nargs -lt 1 || $nargs -gt 7 ]]; then
usage
exit 2
fi

#-----------------------------------------------------------
# Set default values and process command line arguments.
#
#run=gdas
run=gdas
tank=""
area=""
area=glb

while [[ $# -ge 1 ]]; do
key="$1"
Expand All @@ -48,6 +52,14 @@ while [[ $# -ge 1 ]]; do
tank="$2"
shift # past argument
;;
-r|--run)
run="$2"
shift # past argument
;;
-a|--area)
area="$2"
shift # past argument
;;
*)
#any unspecified key is RADMON_SUFFIX
export RADMON_SUFFIX=$key
Expand All @@ -59,6 +71,7 @@ done
this_file=`basename $0`
this_dir=`dirname $0`

export RAD_AREA=${area}
top_parm=${this_dir}/../../parm

radmon_config=${radmon_config:-${top_parm}/RadMon_config}
Expand Down Expand Up @@ -90,13 +103,21 @@ fi
if [[ ${#tank} -le 0 ]]; then
tank=${TANKDIR}
fi

export R_TANKDIR=${tank}
echo R_TANKDIR = $R_TANKDIR
export RUN=${run}

if [[ ${RAD_AREA} == "glb" ]]; then
${RADMON_IMAGE_GEN}/html/install_glb.sh

${RADMON_IMAGE_GEN}/html/install_glb.sh
elif [[ ${RAD_AREA} == "rgn" ]]; then
${RADMON_IMAGE_GEN}/html/install_rgn.sh

else
echo "area value ${RAD_AREA} is not recognized. Only valid values are 'glb' and 'rgn'."
fi

echo
echo "END Install_html.sh"

exit
275 changes: 0 additions & 275 deletions src/Radiance_Monitor/image_gen/html/bcoef.html.glb

This file was deleted.

Loading

0 comments on commit 8f58a20

Please sign in to comment.