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

Put RadMon regional html in repository and add scripting for regional web site generation #154

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
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
Loading