#!/bin/ksh # # THIS SCRIPT IS DESIGNED TO BE RUN IN THE DIRECTORY IN WHICH # THE HTML FILE WILL RUN # # $1 = product for display # WEST # 1-Upper Winds # 2-Lower Winds # 3-Upper Shear # 4-Upper Shear - Color # 5-Upper Shear Tendency # 6-Mid Shear # 7-Upper Divergence # 8-Lower Convergence # 9-200 mb Vorticity # 10-500 mb Vorticity # 11-700 mb Vorticity # 12-850 mb Vorticity # EAST # 13-Upper Winds # 14-Lower Winds # 15-Upper Shear # 16-Upper Shear - Color # 17-Upper Shear Tendency # 18-Mid Shear # 19-Upper Divergence # 20-Lower Convergence # 21-200 mb Vorticity # 22-500 mb Vorticity # 23-700 mb Vorticity # 24-850 mb Vorticity # $2 = relative time # 1-Latest # 2-Six Hours Ago # 3-Twelve Hours Ago # 4-Eighteen Hours Ago # 5-Twenty Four Hours Ago # $3 = coverage region # 1-Large Scale # 2-Storm Scale # if [ $1 -eq 1 ] then product="Upper Level Winds" rootproduct=wgmswvs1 oppositerootproduct=wgmswvs3 elif [ $1 -eq 2 ] then product="Lower Level Winds" rootproduct=wgmsirs1 oppositerootproduct=wgmsirs3 elif [ $1 -eq 3 ] then product="Wind Shear" rootproduct=wgmsshSW oppositerootproduct=wgmsshSE elif [ $1 -eq 4 ] then product="Wind Shear - Color" rootproduct=wgmswxcw oppositerootproduct=wgmswxce elif [ $1 -eq 5 ] then product="Shear Tendency" rootproduct=wgmsshtw oppositerootproduct=wgmsshte elif [ $1 -eq 6 ] then product="Mid Level Shear" rootproduct=wgmsmidshr oppositerootproduct=wgmsmidshr elif [ $1 -eq 7 ] then product="Upper Level Divergence" rootproduct=wgmsdvSW oppositerootproduct=wgmsdvSE elif [ $1 -eq 8 ] then product="Lower Level Convergence" rootproduct=wgmsconvw oppositerootproduct=wgmsconve elif [ $1 -eq 9 ] then product="200 mb Vorticity" rootproduct=wgmsvor200 oppositerootproduct=wgmsvor200 elif [ $1 -eq 10 ] then product="500 mb Vorticity" rootproduct=wgmsvor500 oppositerootproduct=wgmsvor500 elif [ $1 -eq 11 ] then product="700 mb Vorticity" rootproduct=wgmsvor700 oppositerootproduct=wgmsvor700 elif [ $1 -eq 12 ] then product="850 mb Vorticity" # rootproduct=wgmsvor850 rootproduct=wgmsvorw oppositerootproduct=wgmsvore elif [ $1 -eq 13 ] then product="Upper Level Winds" rootproduct=wgmswvs3 oppositerootproduct=wgmswvs1 elif [ $1 -eq 14 ] then product="Lower Level Winds" rootproduct=wgmsirs3 oppositerootproduct=wgmsirs1 elif [ $1 -eq 15 ] then product="Wind Shear" rootproduct=wgmsshSE oppositerootproduct=wgmsshSW elif [ $1 -eq 16 ] then product="Wind Shear - Color" rootproduct=wgmswxce oppositerootproduct=wgmswxcw elif [ $1 -eq 17 ] then product="Shear Tendency" rootproduct=wgmsshte oppositerootproduct=wgmsshtw elif [ $1 -eq 18 ] then product="Mid Level Shear" rootproduct=wgmsmidshr oppositerootproduct=wgmsmidshr elif [ $1 -eq 19 ] then product="Upper Level Divergence" rootproduct=wgmsdvSE oppositerootproduct=wgmsdvSW elif [ $1 -eq 20 ] then product="Lower Level Convergence" rootproduct=wgmsconve oppositerootproduct=wgmsconvw elif [ $1 -eq 21 ] then product="200 mb Vorticity" rootproduct=wgmsvor200 oppositerootproduct=wgmsvor200 elif [ $1 -eq 22 ] then product="500 mb Vorticity" rootproduct=wgmsvor500 oppositerootproduct=wgmsvor500 elif [ $1 -eq 23 ] then product="700 mb Vorticity" rootproduct=wgmsvor700 oppositerootproduct=wgmsvor700 elif [ $1 -eq 24 ] then product="850 mb Vorticity" # rootproduct=wgmsvor850 rootproduct=wgmsvore oppositerootproduct=wgmsvorw fi nop3link=0 nom3link=0 if [ $2 -eq 1 ] then nop3link=1 reltime="Latest Available" p3base=" color=#555555" m3base=">' > $outfile echo '' >> $outfile echo '' >> $outfile echo 'MTSAT '$product'' >> $outfile echo '' >> $outfile echo >> $outfile #----- # Set the table parameters for the top bar table #----- echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo >> $outfile #----- # Make title table #----- echo '' >> $outfile echo >> $outfile #----- # Build plus and minus three hour links table #----- if [ $nop3link -eq 1 ] then plus3=$p3base else plus3=$p3base$rootproduct$region$p3hours fi if [ $nom3link -eq 1 ] then minus3=$m3base else minus3=$m3base$rootproduct$region$m3hours fi echo '' >> $outfile echo >> $outfile #----- # Create links to other products table #----- echo '' >> $outfile echo >> $outfile #----- # Build links for all coverages table #----- if [ $3 -eq 1 ] then linkL=" color=#555555" linkZ=">' >> $outfile echo '
' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '
' >> $outfile echo ''$reltime'
' >> $outfile echo ''$product'
' >> $outfile echo ''$coverage'' >> $outfile echo '
' >> $outfile echo '
' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '
' >> $outfile echo '+6hr' >> $outfile echo '-6hr
' >> $outfile echo '
' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo 'Upper Level Winds' >> $outfile else echo 'Upper Level Winds' >> $outfile fi fi echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo 'Lower Level Winds' >> $outfile else echo 'Lower Level Winds' >> $outfile fi fi echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo 'Wind Shear' >> $outfile else echo 'Wind Shear' >> $outfile fi fi echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo 'Shear Tendency' >> $outfile else echo 'Shear Tendency' >> $outfile fi fi echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo 'Upper Level Divergence' >> $outfile else echo 'Upper Level Divergence' >> $outfile fi fi echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo 'Lower Level Convergence' >> $outfile else echo 'Lower Level Convergence' >> $outfile fi fi echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo '850 mb Vorticity' >> $outfile else echo '850 mb Vorticity' >> $outfile fi fi echo '' >> $outfile echo '' >> $outfile echo '
' >> $outfile if [[ $1 -eq 1 || $1 -eq 13 ]] then echo 'Upper Level Winds' >> $outfile if [[ $1 -eq 2 || $1 -eq 14 ]] then echo 'Lower Level Winds' >> $outfile if [[ $1 -eq 3 || $1 -eq 15 ]] then echo 'Wind Shear' >> $outfile if [[ $1 -eq 5 || $1 -eq 17 ]] then echo 'Shear Tendency' >> $outfile if [[ $1 -eq 7 || $1 -eq 19 ]] then echo 'Upper Level Divergence' >> $outfile if [[ $1 -eq 8 || $1 -eq 20 ]] then echo 'Lower Level Convergence' >> $outfile if [[ $1 -eq 12 || $1 -eq 24 ]] then echo '850 mb Vorticity
' >> $outfile echo '
' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '
' >> $outfile echo 'Large Scale' >> $outfile echo 'Zoom
' >> $outfile echo '' >> $outfile echo >> $outfile #----- # Build links for WEST or EAST coverages table #----- if [[ $1 -ge 1 && $1 -le 12 ]] then linkWE=">EAST" else linkWE=">WEST" fi echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '
' >> $outfile echo '
' >> $outfile echo '' >> $outfile echo >> $outfile #----- # Make link back to main page #----- echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '
' >> $outfile echo 'Home' >> $outfile echo '
' >> $outfile echo '' >> $outfile echo >> $outfile #----- # End top bar table #----- echo '' >> $outfile echo '' >> $outfile echo >> $outfile #----- # Create link for product GIF #----- echo '' >> $outfile echo >> $outfile #----- # Set the table parameters for the bottom bar table #----- echo '' >> $outfile echo '' >> $outfile echo >> $outfile #----- # Make title table #----- echo '' >> $outfile echo >> $outfile #----- # Create plus and minus three hour links table #----- echo '' >> $outfile echo >> $outfile #----- # Create links to other products table #----- echo '' >> $outfile echo >> $outfile #----- # Build links for all coverages table #----- echo '' >> $outfile echo >> $outfile #----- # Build links for WEST or EAST coverages table #----- echo '' >> $outfile echo >> $outfile #----- # Make link back to main page #----- echo '' >> $outfile echo >> $outfile #----- # End bottom bar table #----- echo '' >> $outfile echo '
' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '
' >> $outfile echo ''$reltime'
' >> $outfile echo ''$product'
' >> $outfile echo ''$coverage'' >> $outfile echo '
' >> $outfile echo '
' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '
' >> $outfile echo '+6hr' >> $outfile echo '-6hr
' >> $outfile echo '
' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo 'Upper Level Winds' >> $outfile else echo 'Upper Level Winds' >> $outfile fi fi echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo 'Lower Level Winds' >> $outfile else echo 'Lower Level Winds' >> $outfile fi fi echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo 'Wind Shear' >> $outfile else echo 'Wind Shear' >> $outfile fi fi echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo 'Shear Tendency' >> $outfile else echo 'Shear Tendency' >> $outfile fi fi echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo 'Upper Level Divergence' >> $outfile else echo 'Upper Level Divergence' >> $outfile fi fi echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo 'Lower Level Convergence' >> $outfile else echo 'Lower Level Convergence' >> $outfile fi fi echo '' >> $outfile else if [[ $1 -ge 1 && $1 -le 12 ]] then echo '850 mb Vorticity' >> $outfile else echo '850 mb Vorticity' >> $outfile fi fi echo '' >> $outfile echo '' >> $outfile echo '
' >> $outfile if [[ $1 -eq 1 || $1 -eq 13 ]] then echo 'Upper Level Winds' >> $outfile if [[ $1 -eq 2 || $1 -eq 14 ]] then echo 'Lower Level Winds' >> $outfile if [[ $1 -eq 3 || $1 -eq 15 ]] then echo 'Wind Shear' >> $outfile if [[ $1 -eq 5 || $1 -eq 17 ]] then echo 'Shear Tendency' >> $outfile if [[ $1 -eq 7 || $1 -eq 19 ]] then echo 'Upper Level Divergence' >> $outfile if [[ $1 -eq 8 || $1 -eq 20 ]] then echo 'Lower Level Convergence' >> $outfile if [[ $1 -eq 12 || $1 -eq 24 ]] then echo '850 mb Vorticity
' >> $outfile echo '
' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '
' >> $outfile echo 'Large Scale' >> $outfile echo 'Zoom
' >> $outfile echo '
' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '
' >> $outfile echo '
' >> $outfile echo '
' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo '
' >> $outfile echo 'Home' >> $outfile echo '
' >> $outfile echo '
' >> $outfile echo >> $outfile #----- # Close full page table #----- echo '' >> $outfile echo >> $outfile echo '' >> $outfile exit