Geospatial Modeling Environment
Geospatial Modeling Environment
and
Data Assembly, Part III
GIS Cyberinfrastructure Module
Day 5
R Questions?
Objectives
Address any R questions from the tutorial
Become familiar with the Geospatial
Modeling Environment (GME)
Complete and export a dataset suitable for
species distribution modeling
Data Management
Computing Notes
GME is the replacement for Hawthes Tools,
which are no longer updated and are not
guaranteed to function with ArcGIS 9.3 and
higher
If you are running ArcGIS 9.2 or lower, GME will
not run, but you can use Hawthes Tools instead
To obtain GME, follow the installation
instructions here:
http://www.spatialecology.com/gme/gmedownload.htm
NOTE: You MUST be running Arc10 and have all GMEassociated software to run the currently available version
of GME
GME Functionality
Why use GME?
It formally replaces Hawthes Tools for ArcGIS
versions 9.3.1 and above
Hawthes Tools often function with 9.3.1, but not
always. Technical support for Hawthes Tools has
also ceased.
GME Functionality
How does GME work?
GME commands are entered in the GUI, but
processed in R, using ArcGIS only when
necessary.
Older versions are run from within ArcMap,
but still process commands in R
GME GUI
The GME interface looks the same whether you are
running the stand-alone version or the version that runs
from within ArcMap
Command line
Menu of
Commands
Version and
Use Instructions
Entered
commands
Command History
Once you enter a command, it will disappear from the
command line
The entered command will appear below the version and
instructions information, along with any processing notes
or errors.
You cannot cut and paste code from the command
history back into the command line
To avoid re-typing potentially long code, I strongly
suggest that you write your functions in a text editor
(Notepad, Word, etc.) and paste them into GME from
there. Any edits can then be made quickly and the
revised function re-pasted into GME
Command Setup
For the buffer function, there are three required inputs: in,
out, and distance
There are three optional inputs: units, copyfields, and where
Buffer Example
Open a text editor and modify this function for your data to
calculate a 150 ft buffer around linear hydro features:
buffer(in="C:\GISCourse\hydro_l_NE_albers.shp",
out="C:\GISCourse\hydro_l_albers_gmebuff.shp",distance=1
50,units="ft",copyfields=TRUE)
The input shapefile should be your linear hydro shapefile
that was clipped to New England and projected to Albers
Can you reason what the output will be? How is this similar
or different to the ArcToolbox Buffer tool?
Run the command in GME and add the resulting shapefile to
your map.
Data Check
You should have X files, all projected in Albers
Data Management
If your current map is very cluttered and disorganized, I
strongly recommend starting a new map and adding only
the layers you now need
Use the Group function to further organize your layers
Recall: hold down the Control key, click the layers you want to
group in the T of C, then right click and select Group
Open the attribute table of the point and the point buffer
layers and remove any unneeded fields from previous
processing errors
Data Summarization
Some variables are most informative when considered at
the landscape scale.
We have 2 layers to summarize within the point buffers
(landscape scale): roads and LULC
Roads: sum length of road within buffer
LULC: calculate percentage of each category within
buffer
GME can be used for these analyses
We then need to append these landscape summarized
variables along with climate, elevation, slope, and aspect
values to the point observations.
Required
inputs
Optional
inputs
isectpolyrst
This tool can also be used to summarize
continuous rasters (e.g., climate) within
polygons (e.g., buffers)
What tool have we already used that does
this type of summarization?
Use the isectpolyrst command in GME to
summarize the MAT and MAP climate
rasters within the point buffers
Assessment
Where does your data assembly stand?
We have a point buffer layer with roads and
LULC summarized
We need to append those buffer values to the
specimen points, along with point values for
MAT, MAP, elevation, slope, and aspect
How might you proceed?
Data Organization
Organize your map data
Group the following layers that you will need for final assembly:
DEM
Slope
Aspect
MAT
MAP
Processed point buffers (with road_sum and luV# fields)
Specimen observation points
These layers should all be in Albers and clipped to New England
Data Organization
A well organized map before final assembly:
Combining Data
Use the Extract Multi Values to Points tool to append
MAT, MAP, DEM, slope, and aspect to the IPANE
specimen observation points
You now have 2 data files: IPANE specimen observation
points with associated environmental data (MAT, MAP,
DEM, slope, aspect) and IPANE point buffers with LULC
and road length summaries.
Use a spatial join to append the buffer data to the point
observations.
Export the data to a new shapefile
Delete redundant fields (use the Delete Field tool)
Final Dataset
Check your processing results on the map and the
attribute table to ensure everything looks correct
Are there any features that seem odd?
Does your data need additional quality control (QC)?
Final Dataset
For example, there are points in my dataset that have values for road_sum
and luV#, but all zeros or -1 for the other raster values. Each of our data
layers had slightly different extents, so coastal points may have fallen
outside the data area for some layers. There isnt much we can do about
this, other than be sure missing data is coded as such.
Final Dataset
After exploring your dataset and determining which points
need QC, export the data in tabular form
You can export a variety of file types
Text files are very flexible and can be used easily in Excel or R
dBASE files are commonly used in ArcGIS and can be used in R and
Excel
Final Dataset
Save your quality controlled table
You now have a dataset that could be used to
model your species distribution based on
environmental factors. Most statistical modeling
(such as species distribution modeling) is
conducted external to ArcGIS, which is why we
needed to export the dataset to tabular form.
Skills Summary
Geospatial Modeling Environment
Function coding
Assignments
Read the two papers posted on the course
website
Complete sections 1.5, 1.6, 2.1-2.3, and 3.1
of the R tutorial on the course website