Skip to content

Commit

Permalink
Ref #157
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardSafford-NOAA committed Feb 4, 2025
1 parent e4191ce commit 0254b6e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
16 changes: 8 additions & 8 deletions src/Radiance_Monitor/image_gen/html/install_glb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ echo ""
echo ""

do_cmp=0
cmp_src=""
cmp_src_default="GDAS"
cmp_src=${cmp_src_default}


#--------------------------------------------------------------
# Allow user to enable comparison plots
#
echo "Do you wish to enable data plots to include comparison to"
echo " operational GDAS data, or another data source?"
echo " operational ${cmp_src} data, or another data source?"
echo ""
echo -n " Enter YES to enable comparison plots, any other input to disable. > "
read text
short=`echo $text | cut -c1`

if [[ $short = "Y" || $short = "y" ]]; then
do_cmp=1
cmp_src="GDAS"

echo "Please specify the suffix of your comparison data source,"
echo " or just hit the return key to use the operational GDAS as "
echo " or just hit the return key to use the operational ${cmp_src} as "
echo " the comparison source"
echo ""
echo -n " > "
Expand Down Expand Up @@ -282,7 +282,7 @@ if [[ $do_cmp == 1 ]]; then
comp_html_files="plot_summary.html plot_time.html"

#-------------------------------------------------------------------------
# If cmp_src == GDAS we only have to uncomment the comparison check box
# If cmp_src == $cmp_src_default we only have to uncomment the comparison check box
# in the html files. If it's another source then we'll have to change
# the values of compSrc, compName, and compHome in the html files.
#
Expand All @@ -299,9 +299,9 @@ if [[ $do_cmp == 1 ]]; then
mv -f ${tmp_html} ${html_file}

#---------------------------------------------------------------
# if we're using a source other than GDAS make that change here
# if we're using a source other than $cmp_src_default that change here
#
if [[ $cmp_src != "GDAS" ]]; then
if [[ $cmp_src != ${cmp_src_default} ]]; then
cmp_sc_line=" var compSrc = \"${cmp_src}\";"
cmp_nm_line=" var compName = \"${cmp_src}\";"
cmp_hm_line=" var compHome = \"../${cmp_src}/\";"
Expand Down Expand Up @@ -331,7 +331,7 @@ new_index="index.html"

$NCP ${RADMON_IMAGE_GEN}/html/${index_file} .
sed s/INSERT_SUFFIX/${SUFFIX}/g $index_file > ${tmp_index}
if [[ $SUFFIX == "GFS" || $SUFFIX == "nrx" ]]; then
if [[ $SUFFIX == ${cmp_src_default} ]]; then
sed s/Experimental/Operational/1 ${tmp_index} > ${new_index}
fi

Expand Down
23 changes: 11 additions & 12 deletions src/Radiance_Monitor/image_gen/html/install_rgn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,27 @@ echo "BEGIN install_rgn.sh"
echo ""

do_cmp=0
cmp_src=""
cmp_src_default="NAM"
cmp_src=${cmp_src_default}
comp_source_value="nam"
comp_source_name="Operational NAM"


#--------------------------------------------------------------
# Allow user to enable comparison plots
#
echo "Do you wish to enable data plots to include comparison to"
echo " operational NAM data, or another regional data source?"
echo " operational ${cmp_src} data, or another regional data source?"
echo ""
echo -n " Enter YES to enable comparison plots, any other input to disable. > "
read text
short=`echo $text | cut -c1`

if [[ $short = "Y" || $short = "y" ]]; then
do_cmp=1
cmp_src="NAM"

echo "Please specify the suffix of your comparison data source,"
echo " or just hit the return key to use the operational NAM as "
echo " or just hit the return key to use the operational ${cmp_src} as "
echo " the comparison source"
echo ""
echo -n " > "
Expand Down Expand Up @@ -280,13 +282,10 @@ done
if [[ $do_cmp == 1 ]]; then

comp_html_files="plot_summary.html plot_time.html"
comp_source_value="nam"
echo "comp_source_value = $comp_source_value"
comp_source_name="Operational NAM"
#-------------------------------------------------------------------------
# If cmp_src == GDAS we only have to uncomment the comparison check box
# in the html files. If it's another source then we'll have to change
# the values of compSrc, compName, and compHome in the html files.
#--------------------------------------------------------------------------
# If cmp_src == $cmp_src_default we only have to uncomment the comparison
# check box in the html files. If it's another source then we'll have to
# change the values of compSrc, compName, and compHome in the html files.
#

for html_file in $comp_html_files; do
Expand All @@ -301,7 +300,7 @@ if [[ $do_cmp == 1 ]]; then

#---------------------------------------------------------------
# if we're using a source other than GDAS make that change here
if [[ $cmp_src != "NAM" ]]; then
if [[ ${cmp_src} != ${cmp_src_default} ]]; then
cmp_sc_line=" var compSrc = \"${cmp_src}\";"
cmp_nm_line=" var compName = \"${cmp_src}\";"
cmp_hm_line=" var compHome = \"../${cmp_src}/\";"
Expand Down

0 comments on commit 0254b6e

Please sign in to comment.