Skip to main content

AQ Exceedance

updated; foreach ($xml->site as $sites) { $site_name[$i] = $sites->name; $site_aqsid[$i] = $sites->aqsid; $countyid[$i] = substr($site_aqsid[$i], 2,-4); //Get PM-10 Data $checkpm10[$i] = $sites->pm10; if($checkpm10[$i] == "NA"){ $pm10excount[$i]=""; $pm10boxcolor[$i]="test"; }else if($checkpm10[$i] == ""){ $pm10excount[$i]=0; $pm10boxcolor[$i]="testhere"; }else{ foreach ($sites->pm10->exceedance as $ex){ $pm10exdate[$z] = $ex->date; $pm10conc[$z] = $ex->conc; $pm10boxcolor[$i]="testhere"; //$pm10aqi[$j] = $ex->aqi; if($pm10first == "0"){ $pm10min[$i] = $z; $pm10first = 999; } $z=$z+1; } $pm10max[$i] = $z-1; $pm10first = "0"; $pm10excount[$i] = $pm10max[$i]-$pm10min[$i]+1; }; //Get Ozone Data $checkozone[$i] = $sites->ozone; if($checkozone[$i] == "NA"){ $ozoneexcount[$i]=""; $ozoneboxcolor[$i]="test"; }else if($checkozone[$i] == ""){ $ozoneexcount[$i]=0; $ozoneboxcolor[$i]="testhere"; }else{ foreach ($sites->ozone->exceedance as $ex){ $ozoneexdate[$z] = $ex->date; $ozoneconc[$z] = $ex->conc; $ozoneboxcolor[$i]="testhere"; //$ozoneaqi[$j] = $ex->aqi; if($ozonefirst == "0"){ $ozonemin[$i] = $z; $ozonefirst = 999; } $z=$z+1; } $ozonemax[$i] = $z-1; $ozonefirst = "0"; $ozoneexcount[$i] = $ozonemax[$i]-$ozonemin[$i]+1; }; //Get PM-2.5 Data $checkpm25[$i] = $sites->$pm25; if($checkpm25[$i] == "NA"){ $pm25excount[$i] = ""; $pm25boxcolor[$i]="test"; }else if($checkpm25[$i] == ""){ $pm25excount[$i] = "0"; $pm25boxcolor[$i]="testhere"; }else{ foreach ($sites->$pm25->exceedance as $ex){ $pm25exdate[$z] = $ex->date; $pm25conc[$z] = $ex->conc; $pm25boxcolor[$i]="testhere"; //$pm25aqi[$j] = $ex->aqi; if($pm25first == "0"){ $pm25min[$i] = $z; $pm25first = 999; } $z=$z+1; } $pm25max[$i] = $z-1; $pm25first = "0"; $pm25excount[$i] = $pm25max[$i]-$pm25min[$i]+1; }; $i=$i+1; } ?> This report displays the number of days a monitor exceeded the federal health standard for the given year. Click the monitor to view the dates of each exceedance and the associated concentration.

Previous Day"; else echo "";?>

    

Next Day"; else echo "";?>
".$countyname[$b]."
"; echo"
Monitor
Ozone
PM10
PM2.5
"; $countycheck=999; } echo ""; echo "
"; echo "
"; echo "
Date
ppb
"; if($ozoneexcount[$j]>0){ $jj=$ozonemin[$j]; while ($jj < $ozonemax[$j]+1){ echo "
".$ozoneexdate[$jj] . "
".$ozoneconc[$jj]."
"; $jj=$jj+1; } }else{ echo "-"; } echo "
"; echo "
"; echo "
"; echo "
"; echo "
Date
µg/m3
"; if($pm10excount[$j]>0){ $jj=$pm10min[$j]; while ($jj < $pm10max[$j]+1){ echo "
".$pm10exdate[$jj] . "
".$pm10conc[$jj]."
"; $jj=$jj+1; } }else{ echo "-"; } echo "
"; echo "
"; echo "
"; echo "
"; echo "
Date
µg/m3
"; if($pm25excount[$j]>0){ $jj=$pm25min[$j]; while ($jj < $pm25max[$j]+1){ echo "
".$pm25exdate[$jj] . "
".$pm25conc[$jj]."
"; $jj=$jj+1; } }else{ echo "-"; } echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; } $j=$j+1; } $b = $b+1; } ?>