<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
  <title>Case Study: Visualizing Air Quality Data&lt;br&gt;with gnuplot</title>
             	 	         
  <meta name="generator" content="BBEdit 6.5.3">
</head>
  <body>
        
<h1 align="center">Case Study: Where's the Poop?</h1>
        
<blockquote> Source:  data generated by a spatial model of the Neuse River 
 created in the STELLA modeling language. &nbsp;  Model interface, data collection, 
 and case study by Robert R. Gotwals, Morehead Planetarium and Science Center.
  </blockquote>
       
<hr>     
<h3>Introductory Readings</h3>
        
<blockquote>          
  <h4>Background Science</h4>
   Point source pollution of our streams and rivers is a significant problem 
 in today's environment. &nbsp;Certainly in the state of North Carolina (with 
 apologies to the Illinois folks!), the amount of pollution entering water 
 systems such as the Neuse River is of great concern to everyone who depends 
 on this source of water.<br>
     <br>
   The data from this model is more qualitative than quantitative, in that
 it represents a crude approximation of how pollutants are transported in
a body of water, in this case a river flowing from Durham North Carolina,terminating 
 in the Atlantic Ocean at the Pamlico Sound. &nbsp;In this model, the Neuse 
 River has been segmented into three segments: &nbsp;a Durham segment, a Raleigh
 segment, and a Pamilco segment. &nbsp;For purposes of keeping the dataset
 manageable, only three segments are identified. &nbsp;In a more sophisticated
 model, the river would be segmented into a larger number of smaller segments.<br>
     <br>
   At some point in this model, hog waste -- hence the title, "Where's the
 Poop" -- is being introduced into the river. &nbsp;The amount of hog effluent
 in this model is small. &nbsp;Depending on the flow conditions of the river, 
 the hog waste is transported downstream, eventually finding its way into 
the Pamlico Sound. &nbsp;<br>
     <br>
   The model also divides the river into four vertical segments, each approximately 
 one meter in depth. &nbsp;As such, we have a two dimension dataset, with 
the three city segments (Durham, Raleigh, Pamlico) as one dimension, and the
four depths (1m, 2m, 3m, and 4m) as the second. &nbsp;<br>
   The model is run for 300 hours. &nbsp;Data is collected on the total amount 
 (in pounds) of hog waste at each of the 12 coordinates (city and depth) every
 ten hours. &nbsp;As such, this is time-stamped data, and for the purposes 
 of this case study, time represents the third dimension. <br>
     <br>
             
  <blockquote> 	               
    <p> </p>
     </blockquote>
              
  <h4>Objectives of the Case Study</h4>
              
  <blockquote>                
    <blockquote>In this case study, you will create a time-profile visualization 
 of the hog waste distribution dataset. &nbsp;Note: &nbsp;the dataset is not
 particularly interesting due to its size, intentionally kept small to help
 visualize the raw and modified datasets. &nbsp; </blockquote>
      </blockquote>
              
  <h4>About the dataset</h4>
   This dataset consists of 372 data points -- three segments, four depth 
measurements,  and 31 time intervals (0 to 300, in units of 10). &nbsp;The 
dataset is <a href="neuseraw.xls">downloadable</a> as a Microsoft Excel spreadsheet 
with two worksheets -- Raw data and AVSready. &nbsp;A visual inspection of 
both worksheets should be undertaken. &nbsp;Because of the small size of the
dataset, simply looking at the raw data provides some insight into where the
largest amounts of hog waste are located, and, where it isn't located. &nbsp;<br>
     <br>
          </blockquote>
        
<hr>    
<h3>Building the Visualization</h3>
        
<blockquote>           
  <h4>Data Retrieval</h4>
       The data is <a href="neuseraw.xls">downloadable</a> as a Microsoft
Excel spreadsheet from the Morehead web page.                      
  <h4>Data Filtering</h4>
             
  <blockquote>No data filtering is necessary. </blockquote>
             
  <h4>Data Rendering</h4>
  <ol>
    <li>Save the AVSready worksheet as Text-tab delimited. &nbsp;It is a
good idea to put this file into your Clyde folder, more specifically into
the data folder found in your Clyde folder.</li>
    <li>Since this is continuous data, you want to use the 3DMesh tool. &nbsp;In
your Clyde folder, find the Clyde icon entitled "3DMesh". &nbsp;When you
double click on it, the 3D mesh set of windows opens.</li>
    <li>At the top of the control panel, click on "Browse", then find the
tab-delimited file.&nbsp;</li>
    <li>You need to know your dataset! &nbsp;If you recall, there are three
columns (corresponding to the three city segments), four rows (corresponding
to the four vertical depths), and 31 planes (corresponding to the 31 10-hour
intervaled time stamps). &nbsp;Type those values into the appropriate boxes,
making sure to hit the Enter key after each entry.</li>
    <li>Click on the Read File button to get the data into Clyde.</li>
    <li>Now you can manipulate the visualization to see what you like. &nbsp;Some
considerations:</li>
    <ol>
      <li>turn off isosurface, color bounds. &nbsp;You can leave on Show
Bounds, this shows the time profile for the visualization.</li>
      <li>Type in a title, something clever like "Neuse Poop".</li>
      <li>Using the appropriate controls on the control panel, size your
display, move it around, try to see which view is the best.</li>
      <li>Consider viewing the second axis (Axis 2), and then the 31 different
planes.</li>
      <li>You might want to turn on the isosurface, and move the scroll bar
to see if you can learn anything interesting from this feature!<br>
      </li>
    </ol>
    <li>You are now done rendering your dataset!<br>
    </li>
  </ol>
  <br>
                 </blockquote>
        
<hr>    
<h3>Analysis of the Visualization</h3>
       This is a very simple dataset. &nbsp;What you should observe is the
amount of hog waste increase to one corner of the two-dimensional surface.
&nbsp;This represents a concentration of hog waste in the bottom layer of
the Pamlico Sound (Pamlico, 4m).<br>
<br>
     
</body>
</html>

