U.S. FlagAn official website of the United States government
dot gov icon
Official websites use .gov

A .gov website belongs to an official government organization in the United States.

icon https icon
Secure .gov websites use HTTPS

A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

FireLab 2016 Data Download

Data Policy

_HTML_; include "../../../incs/datapolicy.inc"; print<<<_HTML_


_HTML_; } else { $sample = ""; // init. Gets redefined below if it exists. If not, now it has initial value so won't cause error when it is used. $fuel = ""; $firenum = ""; $firedate = ""; $buttonClicked = ""; print<<<_HTML_

Data options:

See Data Graphs for graphs of GCGCB and GCGCR data.

Stack burns: fires 1-75, Room burns: fires 76-107

Enter fire number directly:

_HTML_; // echo "\n\n"; // Code for entering a fire number directly instead of searching fuel type. if (array_key_exists('firenumEntered', $_POST)) { $fireNumberEnteredStr = trim($_POST['firenumEntered']); $fireNumberEnteredStr = strip_tags($fireNumberEnteredStr); echo "

Fire number (enter 3 digits using leading 0's. i.e. 035)

\n"; } else { echo "

Fire number (enter 3 digits using leading 0's. i.e. 035)

\n"; } print<<<_HTML_

Or choose Smoke Processing fires:

_HTML_; echo "

Or search for fires by fuel type:

\n"; // build menu for sample. Remember previous selection (if any) $namesArr = array('Stack Burn','Room Burn'); $optArr = array('Stack','Room'); if (array_key_exists('sampleselected', $_POST)) { $sample = trim($_POST['sampleselected']); //removes white space $sample = strip_tags($sample); //removes any tags if (!in_array($sample, $optArr)) { //validate $sample $sample = ""; // re-init if $sample got an unexpected value. } } echo "\n"; // build menu for fuel. Remember previous selection (if any) // $namesArr = array('Chaparral','Chaparral - Contaminated - Canopy','Chaparral - Uncontaminated - Canopy','Douglas fir','Douglas fir - Canopy','Douglas fir - Litter','Douglas fir - Rotten log','Dung','Engelmann spruce','Engelmann spruce - Canopy','Engelmann spruce - Duff','Engelmann spruce - Fish Lake - Canopy','Excelsior','Loblolly pine - Litter','Lodgepole pine','Lodgepole pine - Canopy','Lodgepole pine - Litter','Manzanita - Contaminated - Canopy','Manzanita - Uncontaminated - Canopy','Peat - Site2','Ponderosa pine','Ponderosa pine - Canopy','Ponderosa pine - Litter','Ponderosa pine - Rotten log','Subalpine fir - Fish Lake','Subalpine fir - Fish Lake - Canopy','Subalpine fir - Fish Lake - Litter'); $namesArr = array('Bear Grass','Building Material','Ceanothos','Chaparral','Douglas fir','Dung','Engelmann spruce','Excelsior','FASME','Jeffrey pine','Juniper','Loblolly pine','Lodgepole pine','Peat','Ponderosa pine','Rice Straw','Sage','Subalpine fir'); if (array_key_exists('fuelselected', $_POST)) { $fuel = trim($_POST['fuelselected']); //removes white space $fuel = strip_tags($fuel); //removes any tags if (!in_array($fuel, $namesArr)) { //validate $fuel $fuel=""; //re-init if unexpected value } } // Define menu items here for types of fires. $len = count($namesArr); echo "\n"; echo "\n"; // echo "
\n"; // close form at end instead of here to include the fire popup if it exists. // ******** populate another popup for list of fires here *********** include "buildfirepopup.inc"; include "getfiredate_type.inc"; include "DataDownload.inc"; if (isset($_POST['getfire'])) { // $fireNumberEnteredStr = trim($_POST['firenumEntered']); // already done above to initialize input with previous value. // $fireNumberEnteredStr = strip_tags($fireNumberEnteredStr); $fireNumberEntered = intval($fireNumberEnteredStr); // convert to integer since that's how it is in meta-data table. // check that firenumber is in range of 1-107 if (($fireNumberEntered < 1) or ($fireNumberEntered > 107)) { echo "Fire number out of range.
"; die(); } $resultsArr = getFireDateTypeFromNum($fireNumberEntered); // returns array of SampleType, FireDate print "
Data download for Fire$fireNumberEnteredStr on $resultsArr[1]
"; if (strlen($resultsArr[0])>0) { include "ddpreamble.inc"; DataDownloadTable($resultsArr[0], "Fire".$fireNumberEnteredStr, $resultsArr[1]); //$sample, $firenum, $firedate } else { print "Fire$fireNumberEnteredStr not found.
"; } } elseif (isset($_POST['getSPtable'])) { if (array_key_exists('spmenu', $_POST)) { $fireNum_Date = trim($_POST['spmenu']); // i.e. Fire004 | 20161006 $fireNum_Date = strip_tags($fireNum_Date); $tempArr = explode(" | ", $fireNum_Date); $firenum = $tempArr[0]; $firedate = $tempArr[1]; print "
Data download for $firenum on $firedate
"; if (strlen($firenum)>0) { include "ddpreamble.inc"; DataDownloadTable("SmokeProcessing", $firenum, $firedate); //$sample, $firenum, $firedate print "

Download details on the AMLGAS species. "; // document from Aerodyne about their gas measurements. Only applies to smoke processing. } else { print "Fire $firenum not found.
"; } } } else { if (array_key_exists('sampleselected', $_POST)) { //$sample = trim($_POST['sampleselected']); //already defined above to remember popup menu settings //$sample = strip_tags($sample); if (array_key_exists('fuelselected', $_POST)) { //$fuel = trim($_POST['fuelselected']); //already defined above to remember popup menu settings //$fuel = strip_tags($fuel); if (array_key_exists('fireselected', $_POST)) { //value contains two values separated by " | " $firenumVals = trim($_POST['fireselected']); //removes white space $firenumVals = strip_tags($firenumVals); //removes any tags $pos = strpos($firenumVals, " | "); if ($pos === false) { $firenum = ""; $firedate = ""; } else { $tempArr = explode(" | ", $firenumVals); $firenum = $tempArr[0]; $firedate = $tempArr[1]; } } if ((strlen($sample)!=0) and (strlen($fuel)!=0)) { findfires($sample, $fuel, $firenum); //creates popup of fires found. $firenum is empty 1st time this is called. It remembers menu selection on subsequent calls. } // read which button was clicked to submit the form if (isset($_POST['searchfiresfile'])) { //button 'Find Fires' clicked."; $buttonClicked="searchfiresfile"; } elseif (isset($_POST['gettable'])) { //button 'Show Data Download Table' clicked."; $buttonClicked="gettable"; } if (array_key_exists('fireselected', $_POST)) { //$firenum = trim($_POST['fireselected']); //already defined above to remember popup menu settings //$firenum = strip_tags($firenum); if (($firenum!="Select a fire") and ($buttonClicked!="searchfiresfile")) { //don't run this code if 'Find Fires' was clicked. User has to make a new selection in fires popup. if ((strlen($sample)!=0) and (strlen($fuel)!=0) and (strlen($firenum)!=0)) { if ((strpos($firenum, "fire")==0) and (strlen($firenum)==7)) { print "


Data download for $firenum on $firedate
"; // just to confirm since user can change menu but forget to click button. include "ddpreamble.inc"; DataDownloadTable($sample, $firenum, $firedate); } //endif strpos } //endif strlen } //endif $firenum!="Select a fire") and ($buttonClicked!="searchfiresfile") } //endif array_key_exists(fireselected) } //endif array_key_exists(fuelselected) } //endif array_key_exists(sampleselected) echo "\n"; // close the form tag down here to include the popup of fires if it exists } } ?>