210 likes | 327 Views
This exercise guides users through graphing vegetation biomass data using Kepler. Focusing on a subset of data from one species in a quadrat, you will extract vegetation cover percentage and height, then create time-series graphs. The exercise covers importing datasets, configuring workflows, and graphical presentation, including adding axis labels and adjusting plot formats. Users will learn the workflow with and without EML metadata, enhancing their data analysis skills in ecological studies.
E N D
Kepler Exercise Deana Pennington University of New Mexico January 9, 2007
Graphing data Vegetation biomass test data • With EML • Without EML
Sevilleta LTER Biomass Plots Biomass = f(species, cover%, height, season)
This Exercise • Using a subset of the data for 1 species in 1 quadrat, extract vegetation cover% and height, and create graphs of those values through time
Get data file • Copy from tundra://training_lab/downloads veg_data_test.csv vegdataDP.xml vegdata2DP.xml • Copy to c:\kepler\workflows\eco
View the end result • Open vegdataDP in kepler • File->Open->vegdataDP.xml • Run
With metadata (easier) • Open a new graph editor in Kepler File->New->Graph Editor • Switch to the Data tab • Remove KU Digir and Geon from Sources • Search for “test” • Add “Vegetation Test Data” to canvas Drag and drop
Explore the dataset • Look at the metadata Right-click on icon-> Get Metadata • Tool tips on ports
Director • Add a director Click on the Components tab Double-click on Components Double-click on Directors Drag and drop the SDF Director onto the canvas • Configure director Double-click or right-click->configure Change iterations to 9 (the number of rows to be read in the file) Click Commit to save
Display the file • Search for “display” • Find the Display actor (last icon) • Drag and drop the Display actor onto the canvas
Hooking up ports • Find the “cover” port Use tool tips Note double type • Click-hold the cover port and drag to the input port on the Display actor • Run the workflow Click the teal triangle or • Delete the Display actor
Add graph • Search for “plotter” • Add XY Plotter actor to canvas • Hook up cover and height output ports to graph input ports • Ru
Run the workflow • Note lousy plot format • Close the display • Change the plot format Click on plot format icon
Reformat the plot • Change Title to something meaningful (I used Vegetation Volume) • Add axis labels • Select dots • Unselect Connect • Apply • Close Run Window • Run from run button • Save your work File->Save-> c:\kepler\workflows\eco\veg_data_xxx.xml, where xxx is your initials
Without EML • The harder way, without EML-described metadata
Cheat-look ahead Open vegdata2DP.xml from Kepler->File->Open File-> [locate file] Opens the file Separates file into columns Extract cover and height columns Converts to decimal number Converts array to elements Constructs graph Note: all this would not be necessary if EML used
Start a new workflow • Open the workflow editor File->New->Graph Editor • Select a director Components Directors Drag and drop SDF Director • Configure director Right click on director Change number of iterations from 0 to 1 • Commit
Read the file • Browse Components=> Data Input => Local input; drag and drop Read Table • From General Purpose, get two copies of the Expression actor • Configure Expression 1 to hold the path and file name for the veg_data_test.csv file • Configure Expression 2 to specify the delimiter “,” • Link the output port of Exression 1 to the file name port of Read Table • Link the output port of Expression 2 to the delimiter port of Read Table • Add the Display actor and hook it up to the string output port • Open Read Table and remove the “pairs” statement at the end • Change the R working directory to your directory • Uncheck the graphical display check box • Run the workflow – it should show you the file contents
Plot the columns Get the R Expression actor from General Purpose Right-click Configure Ports Add an input port named df1
Plot the file (cont’d) • Hook up the dataframe output port from Read Table to the new input port • Configure the actor – change the R script to specify the cover and height columns (as shown below) and to plot
Plot the file (cont’d) • Get Image J • Hook the graphics file output port of R Expression to the input port for Image J • Run workflow