";
$local_dir="/var/apache/cimss/htdocs/clavrx/hoffman_testing/model/images/";
$ckg13="";
$ckg15="";
$ckg16="";
$ckvalid="";
$ckissued="";
$cktcdc="";
$ckhcdc="";
if ( $sat == "g13" ) {
$ckg13="checked";
$Satellite="GOES-East";
} elseif ( $sat == "g15" ) {
$ckg15="checked";
$Satellite="GOES-West";
} elseif ( $sat == "g16" ) {
$ckg16="checked";
$Satellite="GOES-East";
} else {
$sat = "sat";
$Satellite="Satellite";
}
if ( $forecast == "issued" ) {
$ckissued="checked";
} elseif ( $forecast == "valid" ) {
$ckvalid="checked";
} else {
$forecast = "";
}
if ( $product == "tcdc" ) {
$cktcdc="checked";
} elseif ( $product == "hcdc" ) {
$ckhcdc="checked";
} else {
$product = "";
}
if ( $ckcomp1 == "" ) {
$ckcomp0[1]="";
} else {
$ckcomp0[1]="/on";
}
if ( $ckcomp2 == "" ) {
$ckcomp0[2]="";
} else {
$ckcomp0[2]="/on";
}
if ( $ckcomp3 == "" ) {
$ckcomp0[3]="";
} else {
$ckcomp0[3]="/on";
}
if ( $ckcomp4 == "" ) {
$ckcomp0[4]="";
} else {
$ckcomp0[4]="/on";
}
if ( $ckcomp5 == "" ) {
$ckcomp0[5]="";
} else {
$ckcomp0[5]="/on";
}
if ( $ckcomp6 == "" ) {
$ckcomp0[6]="";
} else {
$ckcomp0[6]="/on";
}
echo "";
if ( $sat == "" || $forecast == "" || $product == "" || $ptime == "" ) {
echo "
Please make selections
";
} else {
$xsize="990";
$ysize="660";
$local_dir="/home/jhoffman/public_html/model/images/";
$image_dir="http://cimss.ssec.wisc.edu/clavrx/geo_ground_model/images/";
$over_dir="http://cimss.ssec.wisc.edu/clavrx/geo_ground_model/skill/";
$blk="http://cimss.ssec.wisc.edu/clavrx/geo_ground_model/blank3.png";
for ($x=0; $x < 7; $x++){
$fhr=$x*6;
$fhr=sprintf("%02d", $fhr);
if ( "$forecast" == "valid") {
$thh=$shh-$fhr;
$itime=mktime($thh, 0, 0, $smm , $sdd, $syy);
$vtime=mktime($shh, 0, 0, $smm , $sdd, $syy);
} elseif ( "$forecast" == "issued"){
$thh=$shh+$fhr;
$itime=mktime($shh, 0, 0, $smm , $sdd, $syy);
$vtime=mktime($thh, 0, 0, $smm , $sdd, $syy);
}
$iyy= date('Y', $itime);
$imm= date('m', $itime);
$idd= date('d', $itime);
$ijj= date('z', $itime);
$ihh= date('H', $itime);
$vyy= date('Y', $vtime);
$vmm= date('m', $vtime);
$vdd= date('d', $vtime);
$Vjj= date('z', $vtime);
$vhh= date('H', $vtime);
$lab[$x] = "$fhr hour forecast";
$olab1[$x]= "${over_dir}${sat}.${forecast}.${ptime}.${sat}-227.${product}.${fhr}HrFcast.stats.png";
$olab2[$x]= "${over_dir}${sat}.${forecast}.${ptime}.${sat}-218.${product}.${fhr}HrFcast.stats.png";
$olab3[$x]= "${over_dir}${sat}.${forecast}.${ptime}.${sat}-025.${product}.${fhr}HrFcast.stats.png";
$olab4[$x]= "${over_dir}${sat}.${forecast}.${ptime}.218-227.${product}.${fhr}HrFcast.stats.png";
$olab5[$x]= "${over_dir}${sat}.${forecast}.${ptime}.218-025.${product}.${fhr}HrFcast.stats.png";
$olab6[$x]= "${over_dir}${sat}.${forecast}.${ptime}.227-025.${product}.${fhr}HrFcast.stats.png";
}
$n='n';
$s="\\";
#echo ".${sat}.${forecast}.${product}.${ptime}. ";
echo "";
echo "";
}
?>