diff --git a/util/Radiance_Monitor/image_gen/html/Install_html.sh b/util/Radiance_Monitor/image_gen/html/Install_html.sh index 8ecb71d1da..0d968be994 100755 --- a/util/Radiance_Monitor/image_gen/html/Install_html.sh +++ b/util/Radiance_Monitor/image_gen/html/Install_html.sh @@ -1,5 +1,4 @@ #!/bin/sh -set -ax #-------------------------------------------------------------------- #-------------------------------------------------------------------- @@ -27,7 +26,7 @@ if [[ $nargs -ne 2 ]]; then exit 2 fi -RADMON_SUFFIX=$1 +export RADMON_SUFFIX=$1 echo RADMON_SUFFIX = $RADMON_SUFFIX export RAD_AREA=$2 @@ -36,28 +35,38 @@ this_dir=`dirname $0` top_parm=${this_dir}/../../parm -if [[ -s ${top_parm}/RadMon_config ]]; then - . ${top_parm}/RadMon_config -else - echo "ERROR: Unable to source ${top_parm}/RadMon_config" - exit +radmon_config=${radmon_config:-${top_parm}/RadMon_config} +if [[ ! -e ${radmon_config} ]]; then + echo "Unable to source ${radmon_config}" + exit 2 fi -if [[ -s ${top_parm}/RadMon_user_settings ]]; then - . ${top_parm}/RadMon_user_settings -else - echo "ERROR: Unable to source ${top_parm}/RadMon_user_settings" - exit +. ${radmon_config} +if [[ $? -ne 0 ]]; then + echo "Error detected while sourcing ${radmon_config} file" + exit $? fi +radmon_user_settings=${radmon_user_settings:-${top_parm}/RadMon_user_settings} +if [[ ! -e ${radmon_user_settings} ]]; then + echo "Unable to locate ${radmon_user_settings} file" + exit 4 +fi + +. ${radmon_user_settings} +if [[ $? -ne 0 ]]; then + echo "Error detected while sourcing ${radmon_user_settings} file" + exit $? +fi + #-------------------------------------------------------------- # call the appropriate child script for glb or rgn # if [[ $RAD_AREA == "glb" ]]; then - ${RADMON_IMAGE_GEN}/html/install_glb.sh $RADMON_SUFFIX + ${RADMON_IMAGE_GEN}/html/install_glb.sh else - ${RADMON_IMAGE_GEN}/html/install_rgn.sh $RADMON_SUFFIX + ${RADMON_IMAGE_GEN}/html/install_rgn.sh fi diff --git a/util/Radiance_Monitor/image_gen/html/comp.html.glb b/util/Radiance_Monitor/image_gen/html/comp.html.glb deleted file mode 100755 index e1f9d07680..0000000000 --- a/util/Radiance_Monitor/image_gen/html/comp.html.glb +++ /dev/null @@ -1,90 +0,0 @@ - - - - - Radiance Monitoring - - - - - - - - -

Comparison plots

- -
- - - - - -
Select Platform:
-

-

Click button to...
-
-
- - -
- - - - - diff --git a/util/Radiance_Monitor/image_gen/html/comp.html.rgn b/util/Radiance_Monitor/image_gen/html/comp.html.rgn deleted file mode 100644 index e1f9d07680..0000000000 --- a/util/Radiance_Monitor/image_gen/html/comp.html.rgn +++ /dev/null @@ -1,90 +0,0 @@ - - - - - Radiance Monitoring - - - - - - - - -

Comparison plots

- -
- - - - - -
Select Platform:
-

-

Click button to...
-
-
- - -
- - - - - diff --git a/util/Radiance_Monitor/image_gen/html/install_glb.sh b/util/Radiance_Monitor/image_gen/html/install_glb.sh index 4c70951df9..5a54b5ff97 100755 --- a/util/Radiance_Monitor/image_gen/html/install_glb.sh +++ b/util/Radiance_Monitor/image_gen/html/install_glb.sh @@ -1,5 +1,4 @@ -#!/bin/sh -set -ax +#!/bin/bash #-------------------------------------------------------------------- #-------------------------------------------------------------------- @@ -11,40 +10,57 @@ set -ax #-------------------------------------------------------------------- #-------------------------------------------------------------------- -function usage { - echo "Usage: install_glb.sh suffix" - echo " Suffix is data source identifier that matches data in " - echo " the $TANKDIR/stats directory." -} - echo "BEGIN install_glb.sh" echo "" +echo "" + +do_cmp=0 +cmp_src="" + +#-------------------------------------------------------------- +# 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 "" +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 " the comparison source" + echo "" + echo -n " > " + read text + + if [[ ${#text} -gt 0 ]]; then + cmp_src=${text} + fi -nargs=$# -if [[ $nargs -lt 0 ]]; then - usage - exit 2 + echo "${cmp_src} will be used as the comparison source." fi -SUFFIX=$1 -echo SUFFIX = $SUFFIX + +SUFFIX=$RADMON_SUFFIX RAD_AREA="glb" this_file=`basename $0` this_dir=`dirname $0` - - new_webdir=${WEBDIR}/${SUFFIX} -echo RAD_AREA = $RAD_AREA -echo TANKverf = $TANKverf - #-------------------------------------------------------------- # Create a temporary working directory. # workdir=$STMP_USER/${SUFFIX}_html -rmdir $workdir +if [[ -e $workdir ]]; then + rm -rf $workdir +fi mkdir $workdir cd $workdir @@ -56,13 +72,10 @@ cd $workdir #----------------------------------------------------------- # Find the first date with data. Start at today and work -# backwards. Stop after 90 days and exit. +# backwards. If not found stop after 90 days and exit. # PDATE=`${IG_SCRIPTS}/nu_find_cycle.pl --dir ${TANKverf} --cyc 1` -echo PDATE= $PDATE - limit=`$NDATE -2160 $PDATE` # 90 days -echo limit, PDATE = $limit, $PDATE #----------------------------------------------------------- # Build test_list which will contain all data files for @@ -81,14 +94,22 @@ while [[ data_found -eq 0 && $PDATE -ge $limit ]]; do test_dir=${TANKverf}/${RUN}.${PDY} fi - echo "test_dir = ${test_dir}" - if [[ -d ${test_dir} ]]; then echo " test_dir is GO " - if [[ -e ${test_dir}/angle.tar ]]; then - test_list=`tar -tv ${test_dir}/angle.tar` + if [[ -e ${test_dir}/radmon_angle.tar || -e ${test_dir}/radmon_angle.tar.gz ]]; then + gzipped=0 + if [[ -e ${test_dir}/radmon_angle.tar.gz ]]; then + gunzip ${test_dir}/radmon_angle.tar.gz + gzipped=1 + fi + + test_list=`tar -tf ${test_dir}/radmon_angle.tar` data_found=1 + + if [[ $gzipped -eq 1 ]]; then + gzip ${test_dir}/radmon_angle.tar + fi else test=`ls ${test_dir}/angle.*${PDATE}*.ieee_d* | wc -l` if [[ $test -gt 0 ]]; then @@ -102,10 +123,10 @@ while [[ data_found -eq 0 && $PDATE -ge $limit ]]; do if [[ data_found -eq 0 ]]; then PDATE=`$NDATE -24 $PDATE` - echo PDATE = $PDATE fi done + if [[ $data_found -eq 0 ]]; then echo Unable to locate any data files in the past 90 days for $SUFFIX echo in $TANKverf/angle. @@ -115,25 +136,24 @@ fi #----------------------------------------------------------- # Go through test_list and identify all unique # sat_instrument combinations. The results are the -# SATYPE list for this source. +# SATYPE list for this source. Avoid _anl and ctl files +# since they will give us duplicate satypes. # - for test in ${test_list}; do this_file=`basename $test` + + test_anl=`echo $this_file | grep "_anl"` + test_ctl=`echo $this_file | grep "ctl"` + if [[ $test_anl != "" || $test_ctl != "" ]]; then + continue + fi + tmp=`echo "$this_file" | cut -d. -f1` if [[ $tmp == "angle" ]]; then tmp=`echo "$this_file" | cut -d. -f2` fi - - #---------------------------------------------------------- - # remove sat/instrument_anl names so we don't end up - # with both "airs_aqua" and "airs_aqua_anl" if analysis - # files are being generated for this source. - #---------------------------------------------------------- - test_anl=`echo $tmp | grep "_anl"` - if [[ $test_anl = "" ]]; then - SATYPE_LIST="$SATYPE_LIST $tmp" - fi + + SATYPE_LIST="$SATYPE_LIST $tmp" done export SATYPE=$SATYPE_LIST @@ -143,7 +163,6 @@ if [[ ${#SATYPE} -le 0 ]]; then exit fi -echo $SATYPE #-------------------------------------------------------------- # Use the SATYPE list to construct the platform table. @@ -171,6 +190,7 @@ for satype in $SATYPE; do sat="GOES-${sat_num}" elif [[ $char == "n" ]]; then sat="NOAA-${sat_num}" + else sat=`echo $sat | tr 'a-z' 'A-Z'` fi @@ -178,9 +198,8 @@ for satype in $SATYPE; do sat=`echo $sat | tr 'a-z' 'A-Z'` fi - #----------------------------------------------------------------- - # + # Certain instruments require specific formatting. # amsu_test=`expr match ${ins} "amsu"` hirs_test=`expr match ${ins} "hirs"` @@ -203,7 +222,7 @@ done #-------------------------------------------------------------- # Sort the list by Satellite # -`sort -d $UNSORTED_LIST > $SORTED_LIST` +`sort -d -u $UNSORTED_LIST > $SORTED_LIST` #-------------------------------------------------------------- # Read the sorted list and create the platform table @@ -234,7 +253,6 @@ done < "$SORTED_LIST" imgndir=`dirname ${IMGNDIR}` - #-------------------------------------------------------------- # Edit the html files to add the platform table to each. # @@ -261,39 +279,16 @@ for html_file in $mod_html_files; do # switch all 'INSERT_SUFFIX' tags to the actual suffix # and route output to $html_file and we're done. sed s/INSERT_SUFFIX/${SUFFIX}/g ${tmp_html} > ${html_file} + rm ${tmp_html} done #-------------------------------------------------------------- -# Optionally enable comparison plots to the operational -# GDAS data +# Enable comparison plots # -set +ax -comp_html_files="plot_summary.html plot_time.html" - -echo "Do you wish to enable data plots to include comparison to" -echo " operational GDAS 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 [[ $do_cmp == 1 ]]; then -if [[ $short = "Y" || $short = "y" ]]; then - - 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 " the comparison source" - echo "" - echo -n " > " - read text - - if [[ ${#text} -gt 0 ]]; then - cmp_src=${text} - fi - - echo "Enabling ${cmp_src} as the comparison source." + comp_html_files="plot_summary.html plot_time.html" #------------------------------------------------------------------------- # If cmp_src == GDAS we only have to uncomment the comparison check box @@ -327,8 +322,6 @@ if [[ $short = "Y" || $short = "y" ]]; then done fi -set -ax - #-------------------------------------------------------------- # Generate the intro.html file. # @@ -336,21 +329,7 @@ $NCP ${RADMON_IMAGE_GEN}/html/mk_intro.sh . $NCP ${RADMON_IMAGE_GEN}/html/intro.html intro.html.stock ./mk_intro.sh - - -#-------------------------------------------------------------- -# Copy the menu.html file and change "Experimental" to -# "Operational" if the suffix is wopr or nrx (operational GDAS -# or NDAS. -# -$NCP ${RADMON_IMAGE_GEN}/html/menu.html.$RAD_AREA . - -if [[ $SUFFIX == "wopr" || $SUFFIX == "nrx" ]]; then - tmp_menu=./tmp_menu.html.${RAD_AREA} - sed s/Experimental/Operational/1 menu.html.${RAD_AREA} > ${tmp_menu} - mv -f ${tmp_menu} menu.html.${RAD_AREA} -fi - +rm mk_intro.sh #-------------------------------------------------------------- # Copy the index.html file and change INSERT_SUFFIX to actual suffix. @@ -360,7 +339,7 @@ new_index="index.html" $NCP ${RADMON_IMAGE_GEN}/html/${index_file} . sed s/INSERT_SUFFIX/${SUFFIX}/g $index_file > ${tmp_index} -if [[ $SUFFIX == "wopr" || $SUFFIX == "nrx" ]]; then +if [[ $SUFFIX == "GFS" || $SUFFIX == "nrx" ]]; then sed s/Experimental/Operational/1 ${tmp_index} > ${new_index} fi @@ -372,16 +351,13 @@ if [[ ! -s ${new_index} ]]; then fi fi -support_files="jsuri-1.1.1.js stats.js latest_cycle.php" +rm ./${index_file} #-------------------------------------------------------------- # Make starting directory in $imgndir and copy over html, # misc, and thumb images. # -subdirs="angle bcoef bcor comp horiz summary time" -subdirs="summary" - if [[ ! -d ${IMGNDIR} ]]; then mkdir -p ${IMGNDIR} fi @@ -390,7 +366,7 @@ imgndir=`dirname ${IMGNDIR}` #----------------------- # move html files to imgndir # -all_html_files="${mod_html_files} index.html menu.html intro.html" +all_html_files="${mod_html_files} index.html intro.html" for file in $all_html_files; do $NCP ${file} ${imgndir}/${file} done @@ -398,6 +374,7 @@ done #----------------------- # mk image dirs # +subdirs="angle bcoef summary time" for dir in $subdirs; do mkdir -p ${imgndir}/pngs/${dir} done @@ -405,6 +382,7 @@ done #----------------------- # js files # +support_files="jsuri-1.1.1.js stats.js latest_cycle.php" for file in $support_files; do $NCP ${RADMON_IMAGE_GEN}/html/${file} ${imgndir}/. done @@ -419,7 +397,7 @@ done #----------------------- # summary thumb images -# If any are missing dummy one in using a copy of sndrdr1_g15. +# If any are missing dummy one in using ssmis_f18. # thumbs="sum_thumbs.tar" $NCP ${RADMON_IMAGE_GEN}/html/${thumbs} ${imgndir}/pngs/summary/. @@ -429,7 +407,7 @@ rm -f ${thumbs} for satype in $SATYPE; do if [[ ! -e ${satype}.summary.png ]]; then - $NCP sndrd1_g15.summary.png ${satype}.summary.png + $NCP ssmis_f18.summary.png ${satype}.summary.png fi done @@ -447,19 +425,24 @@ done #--------------------------------------------------- # if on wcoss then cd $imgndir and do the rsync here # -if [[ $MY_MACHINE = "wcoss" ]]; then +if [[ $MY_MACHINE = "wcoss_d" || $MY_MACHINE = "wcoss2" ]]; then + if [[ ${imgndir} != "/" ]]; then # sanity check to avoid serious embarrassment /usr/bin/rsync -ave ssh --exclude *.ctl.${Z} ${imgndir}/ \ - ${WEB_USER}@${WEB_SVR}.ncep.noaa.gov:${WEBDIR}/ + ${WEB_USER}@${WEB_SVR}.ncep.noaa.gov:${WEBDIR}/${SUFFIX}/ fi + + ssh ${WEB_USER}@${WEB_SVR} mkdir ${WEBDIR}/${SUFFIX}/gdas + ssh ${WEB_USER}@${WEB_SVR} ln -s ${WEBDIR}/${SUFFIX}/pngs ${WEBDIR}/${SUFFIX}/gdas/pngs + fi #------------------------ # clean up $workdir # -#cd $workdir -#cd ../ -#rm -rf $workdir +cd $workdir +cd ../ +rm -rf $workdir echo "" echo "END install_glb.sh" diff --git a/util/Radiance_Monitor/image_gen/html/install_rgn.sh b/util/Radiance_Monitor/image_gen/html/install_rgn.sh index 6ceb1a4caf..4a1a1666e6 100755 --- a/util/Radiance_Monitor/image_gen/html/install_rgn.sh +++ b/util/Radiance_Monitor/image_gen/html/install_rgn.sh @@ -1,5 +1,4 @@ #!/bin/sh -set -ax #-------------------------------------------------------------------- #-------------------------------------------------------------------- @@ -10,60 +9,23 @@ set -ax # the server (rgn only, regional is handled by Install_html.sh). #-------------------------------------------------------------------- #-------------------------------------------------------------------- - -function usage { - echo "Usage: install_rgn.sh suffix" - echo " Suffix is data source identifier that matches data in " - echo " the $TANKDIR/stats directory." -} - echo "BEGIN install_rgn.sh" echo "" -nargs=$# -if [[ $nargs -lt 0 ]]; then - usage - exit 2 -fi - -SUFFIX=$1 -echo SUFFIX = $SUFFIX +SUFFIX=$RADMON_SUFFIX RAD_AREA="rgn" this_file=`basename $0` this_dir=`dirname $0` -top_parm=${this_dir}/../../parm - -if [[ -s ${top_parm}/RadMon_config ]]; then - . ${top_parm}/RadMon_config -else - echo "ERROR: Unable to source ${top_parm}/RadMon_config" - exit -fi - -if [[ -s ${top_parm}/RadMon_user_settings ]]; then - . ${top_parm}/RadMon_user_settings -else - echo "ERROR: Unable to source ${top_parm}/RadMon_user_settings" - exit -fi - - -#-------------------------------------------------------------- -# Get the area for this SUFFIX from the data_map file -# -new_webdir=${WEBDIR}/${SUFFIX} - -echo RAD_AREA = $RAD_AREA -echo TANKverf = $TANKverf - #-------------------------------------------------------------- # Create a temporary working directory. # workdir=$STMP_USER/${SUFFIX}_html -rmdir $workdir +if [[ -d ${workdir} ]]; then + rm -rf $workdir +fi mkdir $workdir cd $workdir @@ -75,13 +37,10 @@ cd $workdir #----------------------------------------------------------- # Find the first date with data. Start at today and work -# backwards. Stop after 90 days and exit. +# backwards. If not found, stop after 90 days and exit. # -PDATE=`${IG_SCRIPTS}/find_cycle.pl 1 ${TANKverf}` -echo PDATE= $PDATE - +PDATE=`${IG_SCRIPTS}/find_cycle.pl --cyc 1 --dir ${TANKverf}` limit=`$NDATE -2160 $PDATE` # 90 days -echo limit, PDATE = $limit, $PDATE #----------------------------------------------------------- # Build test_list which will contain all data files for @@ -106,8 +65,6 @@ while [[ data_found -eq 0 && $PDATE -ge $limit ]]; do test_dir=${TANKverf}/${MONITOR}.${PDY} fi - echo "test_dir = ${test_dir}" - if [[ -d ${test_dir} ]]; then echo " test_dir is GO " @@ -134,7 +91,6 @@ while [[ data_found -eq 0 && $PDATE -ge $limit ]]; do if [[ data_found -eq 0 ]]; then PDATE=`$NDATE -24 $PDATE` - echo PDATE = $PDATE fi done @@ -183,8 +139,6 @@ if [[ ${#SATYPE} -le 0 ]]; then exit fi -echo "SATYPE = $SATYPE" - #-------------------------------------------------------------- # Use the SATYPE list to construct the platform table. # @@ -245,9 +199,6 @@ done # `sort -d $UNSORTED_LIST > $SORTED_LIST` -echo -echo -cat $SORTED_LIST #-------------------------------------------------------------- # Read the sorted list and create the platform table @@ -285,7 +236,6 @@ imgndir=`dirname ${IMGNDIR}` mod_html_files="plot_summary.html.rgn plot_time.html.rgn plot_angle.html.rgn plot_bcoef.html.rgn" for html_file in $mod_html_files; do - echo "processing ${html_file}" $NCP ${RADMON_IMAGE_GEN}/html/${html_file} . tmp_html=./tmp_${html_file} @@ -304,7 +254,6 @@ for html_file in $mod_html_files; do # rm the .rgn extension on the html file names new_html_file=`echo $html_file | cut -d'.' -f-2` - echo "new_html_file = $new_html_file" # switch all 'INSERT_SUFFIX' tags to the actual suffix # and route output to $new_html_file and we're done. @@ -364,14 +313,6 @@ if [[ $SUFFIX == "wopr" || $SUFFIX == "nrx" ]]; then sed s/Experimental/Operational/1 ${tmp_index} > ${new_index} fi -#if [[ ! -s ${new_index} ]]; then -# if [[ -s ${tmp_index} ]]; then -# $NCP ${tmp_index} ${new_index} -# else -# $NCP ${index_file} ${new_index} -# fi -#fi - if [[ -s ${tmp_index} ]]; then rm ${tmp_index} fi @@ -440,7 +381,6 @@ done img_list=`ls *.png` # rm any images for sources not in $SATYPE for img in ${img_list}; do tmp=`echo "$img" | cut -d. -f1` - echo $tmp img_match=`echo $SATYPE | grep $tmp` if [[ ${#img_match} -le 0 ]]; then rm -f ${img} @@ -448,22 +388,24 @@ for img in ${img_list}; do done -#--------------------------------------------------- -# if on wcoss then cd $imgndir and do the rsync here +#------------------------------------------------------ +# if on wcoss_d then cd $imgndir and do the rsync here # -if [[ $MY_MACHINE = "wcoss" ]]; then +new_webdir=${WEBDIR}/regional/${SUFFIX} + +if [[ $MY_MACHINE = "wcoss_d" || $MY_MACHINE = "wcoss2" ]]; then if [[ ${imgndir} != "/" ]]; then # sanity check to avoid serious embarrassment /usr/bin/rsync -ave ssh --exclude *.ctl.${Z} ${imgndir}/ \ - ${WEB_USER}@${WEB_SVR}.ncep.noaa.gov:${WEBDIR}/ + ${WEB_USER}@${WEB_SVR}.ncep.noaa.gov:${new_webdir}/ fi fi #------------------------ # clean up $workdir # -#cd $workdir -#cd ../ -#rm -rf $workdir +cd $workdir +cd ../ +rm -rf $workdir echo "" echo "END install_rgn.sh" diff --git a/util/Radiance_Monitor/image_gen/html/menu.html.glb b/util/Radiance_Monitor/image_gen/html/menu.html.glb deleted file mode 100755 index 40a6a6fe45..0000000000 --- a/util/Radiance_Monitor/image_gen/html/menu.html.glb +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Radiance Data Monitoring - - - - - - - -

Experimental GDAS

-

Monitoring Plots

- - - - - - - -
- GDAS home page
- Radiance monitoring home page
- - Time and Angle dependent plots
- Horizontal data plots
- Bias correction coefficients
- Bias correction terms
- Summary plots
- Comparison plots
- -
- - diff --git a/util/Radiance_Monitor/image_gen/html/menu.html.rgn b/util/Radiance_Monitor/image_gen/html/menu.html.rgn deleted file mode 100644 index 95ae4be968..0000000000 --- a/util/Radiance_Monitor/image_gen/html/menu.html.rgn +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Radiance Data Monitoring - - - - - - - -

Experimental NDAS

-

Monitoring Plots

- - - - - - - -
- GDAS home page
- Radiance monitoring home page
- - Time and Angle dependent plots
- Horizontal data plots
- Bias correction coefficients
- Bias correction terms
- Summary plots
- Comparison plots
- -
- - diff --git a/util/Radiance_Monitor/image_gen/html/mk_intro.sh b/util/Radiance_Monitor/image_gen/html/mk_intro.sh index 0e2ae95301..9274395e6c 100755 --- a/util/Radiance_Monitor/image_gen/html/mk_intro.sh +++ b/util/Radiance_Monitor/image_gen/html/mk_intro.sh @@ -111,7 +111,6 @@ while read line; do echo ' ' >> $table # end table row if [[ $ctr != $num_sats ]]; then -# row_end=`expr $row_end + $num_rows` row_end=`expr $row_end + $cols` if [[ $extra < $remainder ]]; then row_end=`expr $row_end + 1` @@ -125,54 +124,20 @@ while read line; do done < "$SORTED_LIST" -#echo ' ' >> $table - -#---------------------------------------------------------------- -# process stock intro.html file and add in the customized table -# -table_start=0 -table_end=0 -table_dump=0 #-------------------------------------------------------------- -# Edit the html files to add the platform table to each. +# Edit infile to add the platform table. # -echo "processing ${infile}" - - # copy the $file from start to tag - sed -e '/
/,$d' ${infile} > ${outfile} - - # add the $PLATFORM_TBL (built above) - `cat $table >> ${outfile}` - # copy the $file from 'END_TABLE_INSERT' comment to end - sed -n '/<\/table>/,$p' ${infile} >> ${outfile} +# copy the $file from start to
tag +sed -e '/
/,$d' ${infile} > ${outfile} +# add the $PLATFORM_TBL (built above) +`cat $table >> ${outfile}` -#while read line; do -# echo $line -# test_start=`echo $line | grep "
"` -# test_end=`echo $line | grep "
"` -## echo "test_start len = ${#test_start} -## echo "test_end len = ${#test_end} -# -# if [[ $table_start -eq 0 && ${#test_start} -gt 0 ]]; then -# table_start=1 -# fi -# -# if [[ ${table_start} -eq 0 || ${table_end} -eq 1 ]]; then -# echo $line >> $outfile -# elif [[ ${table_start} -eq 1 && ${table_dump} -eq 0 ]]; then -# cat $table >> $outfile -# table_dump=1 -# fi -# -# if [[ $table_end -eq 0 && ${#test_end} -gt 0 ]]; then -# table_end=1 -# fi -# -#done < $infile - +# copy the $file from 'END_TABLE_INSERT' comment to end +sed -n '/<\/table>/,$p' ${infile} >> ${outfile} +rm ${infile} echo END mk_intro.sh echo diff --git a/util/Radiance_Monitor/image_gen/html/sum_thumbs.tar b/util/Radiance_Monitor/image_gen/html/sum_thumbs.tar new file mode 100644 index 0000000000..95d6498ba0 Binary files /dev/null and b/util/Radiance_Monitor/image_gen/html/sum_thumbs.tar differ diff --git a/util/Radiance_Monitor/image_gen/src/radmon_ig_angle.fd/angle.f90 b/util/Radiance_Monitor/image_gen/src/radmon_ig_angle.fd/angle.f90 index 02cced14d7..78ea2f26fc 100755 --- a/util/Radiance_Monitor/image_gen/src/radmon_ig_angle.fd/angle.f90 +++ b/util/Radiance_Monitor/image_gen/src/radmon_ig_angle.fd/angle.f90 @@ -48,12 +48,9 @@ program angle character(60) ordang3_out_file, ordang2_out_file , ordang1_out_file character(40) data_file -! character(50) scan_sat character(len=:),allocatable :: fmt_str(:) character(len=10),allocatable,dimension(:)::times -! character(len=2), allocatable,dimension(:)::useflg -! character(len=5), allocatable,dimension(:)::chan_nums,wave,freq integer luname,ldname,lpname,lsatout,lpenout integer ii, jj, i, j, k @@ -140,28 +137,6 @@ program angle close(lpname) -!******************************************************************************* -! Read chan.txt input file, which is the actual channel number for each -! channel. -! -! This is no longer necessary; we're copying the {sat}.chan.txt from pngs/time -! and swapping the ncycles with number of scan positions (done in scripting). -!******************************************************************************* -! allocate( chan_nums (nchanl) ) -! allocate( useflg(nchanl), wave(nchanl), freq(nchanl) ) -! allocate( chi(2, nchanl, nregion) ) - -! open( lpname, file='chan.txt' ) - -! do ii=1,nchanl -! read(lpname, *) chan_nums(ii), useflg(ii), wave(ii), freq(ii) -! do jj=1,nregion -! chi(1,ii,jj) = 0.00 -! end do -! end do -! close(lpname) - - start = scan_start stepsz = scan_stepsz nstep = scan_nstep @@ -364,7 +339,6 @@ program angle write( 6,* ) 'data_file : ', data_file, 'exist = ', exist if ( exist == .TRUE. ) then -! write( 6,* ) 'reading data file: ', data_file open(ldname,file=data_file,form='unformatted') @@ -850,8 +824,6 @@ program angle end do ! ftyp -! deallocate( fcnt, fpen, fomg_nbc, ftot_cor, fomg_bc, ffixang, flapse, flapse2, fmean ) -! deallocate( fscangl, fclw, fcos, fsin, femiss, fordang4, fordang3, fordang2, fordang1 ) deallocate( ttl_cnt, ttl_pen, ttl_omgnbc, ttl_totcor, ttl_omgbc, ttl_fixang ) deallocate( ttl_lapse, ttl_lapse2, ttl_mean, ttl_scangl, ttl_clw, ttl_cos ) @@ -1480,10 +1452,10 @@ program angle !********************************** ! write results to time.txt files !********************************** - 82 FORMAT(A10,',',A10,',',F9.3,',',F9.3,',',F9.3,',',F9.3,',',F9.3,',' & - ,F9.3,',',F9.3,',',F9.3,',',F9.3,',',F9.3,',' & - ,F9.3,',',F9.3,',',F9.3,',',F9.3,',',F9.3,',' & - ,F9.3,',',F9.3,',',F9.3,',',F9.3,',',F9.3,',') + 82 FORMAT(A10,',',A10,',',F12.6,',',F12.6,',',F12.6,',',F12.6,',',F12.6,',' & + ,F12.6,',',F12.6,',',F12.6,',',F12.6,',',F12.6,',' & + ,F12.6,',',F12.6,',',F12.6,',',F12.6,',',F12.6,',' & + ,F12.6,',',F12.6,',',F12.6,',',F12.6,',',F12.6,',') do chan=1,nchanl diff --git a/util/Radiance_Monitor/parm/RadMon_config b/util/Radiance_Monitor/parm/RadMon_config index 381c4767bb..4cf05f8c7b 100644 --- a/util/Radiance_Monitor/parm/RadMon_config +++ b/util/Radiance_Monitor/parm/RadMon_config @@ -20,7 +20,7 @@ export MONITOR=radmon # you checked out only the Radiance_Monitor portion of the branch then # MY_RADMON should point to that. # -export MY_RADMON=${MY_RADMON:-/lfs/h2/emc/da/noscrub/Edward.Safford/git/gsi/GSI/util/Radiance_Monitor} +export MY_RADMON=${MY_RADMON:-/gpfs/dell2/emc/modeling/noscrub/Edward.Safford/GSI/util/Radiance_Monitor} # # The MY_TANKDIR will be the location for the extracted data files and @@ -28,7 +28,7 @@ export MY_RADMON=${MY_RADMON:-/lfs/h2/emc/da/noscrub/Edward.Safford/git/gsi/GSI/ # and the succedding scripts will construct and use subdirectories under # this location. # -export MY_TANKDIR=${MY_TANKDIR:-/lfs/h2/emc/da/noscrub/Edward.Safford/nbns} +export MY_TANKDIR=${MY_TANKDIR:-/gpfs/dell2/emc/modeling/noscrub/Edward.Safford/nbns} export RUN=${RUN:-gdas} @@ -70,15 +70,15 @@ export WEBDIR=${WEBDIR:-/home/people/emc/www/htdocs/gmb/gdas/radiance/esafford} ############################################################################### ############################################################################### -export MY_MACHINE=wcoss2 +export MY_MACHINE=wcoss_d # # Log and work space definitions # -export MY_PTMP=${MY_PTMP:-/lfs/h2/emc/ptmp} +export MY_PTMP=${MY_PTMP:-/gpfs/dell2/ptmp} export PTMP_USER=${PTMP_USER:-${MY_PTMP}/${LOGNAME}} -export MY_STMP=${MY_STMP:-/lfs/h2/emc/stmp} +export MY_STMP=${MY_STMP:-/gpfs/dell2/stmp} export STMP_USER=${STMP_USER:-${MY_STMP}/${LOGNAME}} LOGdir=${LOGdir:-${PTMP_USER}/logs/${RADMON_SUFFIX}} diff --git a/util/Radiance_Monitor/parm/RadMon_user_settings b/util/Radiance_Monitor/parm/RadMon_user_settings index 588325d54e..39031370e2 100644 --- a/util/Radiance_Monitor/parm/RadMon_user_settings +++ b/util/Radiance_Monitor/parm/RadMon_user_settings @@ -16,7 +16,7 @@ export ACCOUNT=${ACCOUNT:-} # PROJECT is used on wcoss only with the bjob -P flag. It is # empty on other platforms. # -export PROJECT=${PROJECT:-GDAS-T2O} +export PROJECT=${PROJECT:-GFS-DEV} # # JOB_QUEUE is used on wcoss only with the bjob -q flag. It is