include('constants.php'); //echo '
';print_r($usa);exit;
$fileContent = file_get_contents('station.txt');
$columnArr = explode("\n",$fileContent);
for($i=1;$i";print_r($finalArray);
//foreach($finalArray['AL'] as $key =>$val)
//{
// if($val['district'] == 4)
// echo $key."
";
//}
//echo $key = array_search("1",$finalArray['AL']['BREWTON']);
//exit;
?>
Temperature Trends
$district = $_GET['district'];
$state = $_GET['state'];
?>
Home > > District
// i
?>
?>
$count = $usa[$state]['district'][$district];
for($i=0;$i<$count/2;$i++)
{
if($i%2 ==0)
$style="style='float:left'";
else
$style="style='float:right'";
echo '';
foreach($finalArray[$state] as $key =>$val)
{
if($val['district'] == $district && $val['buttonName'] == $i+1)
{
echo $key."
";
}
}
echo "";
if($i%2 !=0)
echo "
";
}
?>
if(file_exists('images/district_trends_current/'.$state.'.cd'.$district.'.v0.ANNUAL.tavg.incl_est-0.png') == 0)
{
?>
Sorry, This Congressional District does not have a qualifying station in the
United States Historical Climatology Network (USHCN). This is probably an urban area where any temperature records are
compromised by the urban heat-island effect.
}
?>
if(file_exists('images/district_trends_current/'.$state.'.cd'.$district.'.v0.ANNUAL.tavg.incl_est-0.png'))
{
?>
if(file_exists('images/district_trends_current/'.$state.'.cd'.$district.'.v0.ANNUAL.tavg.incl_est-1.png'))
{
?>
}
?>
Average Temperature for
All Stations District
Compare district with state and global trends

}
?>