diff --git a/src/Radiance_Monitor/image_gen/html/Install_html.sh b/src/Radiance_Monitor/image_gen/html/Install_html.sh index 07237b2a..e7525611 100755 --- a/src/Radiance_Monitor/image_gen/html/Install_html.sh +++ b/src/Radiance_Monitor/image_gen/html/Install_html.sh @@ -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 "" } @@ -28,7 +32,7 @@ echo "" nargs=$# -if [[ $nargs -lt 1 || $nargs -gt 3 ]]; then +if [[ $nargs -lt 1 || $nargs -gt 7 ]]; then usage exit 2 fi @@ -36,9 +40,9 @@ fi #----------------------------------------------------------- # Set default values and process command line arguments. # -#run=gdas +run=gdas tank="" -area="" +area=glb while [[ $# -ge 1 ]]; do key="$1" @@ -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 @@ -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} @@ -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 diff --git a/src/Radiance_Monitor/image_gen/html/bcoef.html.glb b/src/Radiance_Monitor/image_gen/html/bcoef.html.glb deleted file mode 100755 index b0f920d8..00000000 --- a/src/Radiance_Monitor/image_gen/html/bcoef.html.glb +++ /dev/null @@ -1,275 +0,0 @@ - - - - -
-