Intro. To GIS Lecture 10 Model Builder May 6 th, 2013.

download Intro. To GIS Lecture 10 Model Builder May 6 th, 2013.

If you can't read please download the document

Transcript of Intro. To GIS Lecture 10 Model Builder May 6 th, 2013.

  • Slide 1
  • Intro. To GIS Lecture 10 Model Builder May 6 th, 2013
  • Slide 2
  • Reminders Please turn in your homework The final lab is on Wednesday (5/8/2013). For those of you interested, an optional (bonus) lab (Model builder + Spatial autocorrelation) will be assigned on Monday 13 th. This is due on Monday 20 th (final test).
  • Slide 3
  • REVIEW: How to represent the real world in 3D? Data points are used to generate a continuous surface. In the below example, a color coded surface is generated from sample values
  • Slide 4
  • REVIEW: How to represent the real world in 3D? Two ways to generate real world surfaces from point data (sample values) Vector raster Whatever the method, what kind of data are available to represent the world?
  • Slide 5
  • REVIEW: Samples could represent any quantity (value) Elevation Climate data Temperature Precipitation Wind CO2 flux Others Ice thickness Spatial samples (of some quantity) in a city Gold concentrations LiDAR data points
  • Slide 6
  • Vector representation (of surfaces) Triangular Irregular Network (TIN) TIN can be used to Generate contour lines Slope Aspect
  • Slide 7
  • Triangular Irregular Network Way of representing surfaces (vector) Elevation points connected by lines to form triangles Size of triangles may vary Each face created by a triangle is called a facet
  • Slide 8
  • REVIEW: Delaunay triangulation Delaunay triangles: all satisfy the condition Delaunay NOT satisfied
  • Slide 9
  • 09_03_Figure
  • Slide 10
  • Raster Representation (of surfaces) The most commonly used term for raster representation is Digital Elevation Model (DEM) Any digital model for any other variable could be generated For DEM, each cell has an elevation (z-value) To generate DEM from sample points, interpolation is used to fill in between surveyed elevations several methods to choose from
  • Slide 11
  • REVIEW: Spatial Interpolation Generating surface from points (samples) based upon: Nearest Neighbor Inverse Distance Weighted (IDW) Kriging Splining
  • Slide 12
  • REVIEW: Nearest-Neighbor Uses elevations (or another quantity) from a specified number of nearby control points Sample with Known value Pixel (grid cell) with unknown value
  • Slide 13
  • REVIEW: Nearest-Neighbor
  • Slide 14
  • REVIEW: Inverse Distance Weighted (IDW) Spatial Autocorrelation Near objects are more similar than far objects IDW weights point values based on distance
  • Slide 15
  • REVIEW: Inverse Distance Weighted (IDW) Estimating an unknown value for a pixel (p) by weighting the sample values based on their distance to (p) i=8 in this example j In the above equation, n is the power. It is usually equals to 2, i.e., n=2. But you can pick n=1, n=1.5, etc.
  • Slide 16
  • REVIEW: IDW Choosing the Power Power setting influences interpolation results Lower power results in smoother surfaces Higher power results in rugged surface (it become more like .?)
  • Slide 17
  • Inverse Distance Weighted
  • Slide 18
  • REVIEW: Kriging Statistical regression method, whose process consists of two main components Spatial autocorrelation (semivariance) Some weighting scheme Advanced interpolation function, can adapt to trends in elevation data
  • Slide 19
  • REVIEW: Kriging and Semivariogram Semivarigram is a graph describing the semivariance (or simply variance) between pairs of samples at different distances (lags) The idea comes from intuition: Things that are spatially close are more correlated than those are far way (similar to IDW)
  • Slide 20
  • REVIEW: Generating Semivariogram To generate a semivariogram, semivariance between pairs of points (for various distances/lags) are to be calculated
  • Slide 21
  • REVIEW: Semivariance: Example
  • Slide 22
  • REVIEW: Kriging and Semivariogram The first step in the kriging algorithm is to compute an average semivariogram for the entire dataset. This is done by going through each single point in the dataset and calculate semivariogram. Then the semivariogram are averaged. The second step is to calculate the weights associated with each point
  • Slide 23
  • REVIEW: Kriging
  • Slide 24
  • REVIEW: Spline Interpolation Curves fit through control points Interpolated values may exceed actual elevation values Regularized vs. Tension options
  • Slide 25
  • Spline Interpolation
  • Slide 26
  • Evaluation of the generated surface Independent samples must be preserved for accuracy assessment of the predicted (generated) surface. These points are called check points. In other words, if you have 100 samples in the area, youd use 90 to create the surface and 10 of them to evaluate how accurately the surface represents the actual world
  • Slide 27
  • Evaluation Using check points Prediction Observation # of check points
  • Slide 28
  • 04_03_Figure
  • Slide 29
  • Measurement Errors
  • Slide 30
  • 04_02_Figure Accuracy Vs. Precision
  • Slide 31
  • 08_07_Figure
  • Slide 32
  • Model Builder Credit Rowan University
  • Slide 33
  • Model Builder
  • Slide 34
  • Geoprocessing When we perform geoprocessing tasks on our data, we are developing the components of a GIS model. We perform geoprocessing every time we: Use a tool interactively in ArcMap Use tools from ArcToolbox Execute commands using the command line Connect tools in ModelBuilder Use functions in a script (like Python)
  • Slide 35
  • Static and Dynamic Static modeling is the series of steps required to achieve some final result. Available land for development of a nursery Siting of cell towers Dynamic modeling is performed in a similar fashion, but has additional parameters requiring several iterations of the model. Disease outbreak modeling Real-time traffic analysis Spread of wildfires, heavy rain, etc.
  • Slide 36
  • Developing a model for a GIS analysis allows for repeat testing of a hypothesis using different data. The model can be coded into a GIS application, so that the steps are performed automatically. Allows experimentation with model parameters particularly for weighting and rating Easier reproduction of results. Simplification of workflow. Informs the computer how to conduct a series of steps that would be impractical for you to do manually. Why Use ModelBuilder?
  • Slide 37
  • An automation tool Common Types of Models Spatial analysis Example: suitability building attractiveness maps
  • Slide 38
  • Model Builder
  • Slide 39
  • Reproducibility In performing an analysis, you must have your workflow clearly defined. This ensures that you are performing the steps in the correct order using the appropriate tools. Missteps are easy, especially when there can be hours of computer processing between steps. The GIS model can be exported as a graphic flowchart or a modeling data structure.
  • Slide 40
  • Workflow Efficiency There are many repetitive steps you will take in your daily workflow. Streamlining the process saves you time. If you always start working in a File Geodatabase with specific resolution and projection information, a model for generating your specialized GDB can be created.
  • Slide 41
  • Human Inefficiency You physically cannot perform the steps as fast as GIS can produce the results. Certain steps, such as iteration through a feature set would be prohibitively time consuming. You must perform the same steps 21 times to clip data to each individual NJ county. Rail use analysis: 200+ stations Minimize the amount of time spent babysitting GIS to perform complex analyses.
  • Slide 42
  • How do we model? ArcGIS has a drag-and-drop interface to ArcToolbox called ModelBuilder allowing you to develop a flow chart of your GIS workflow. This flowchart is then run step by step to perform your analysis. ArcGIS allows for custom scripting that can be added to ArcToolbox, introducing greater functionality. Custom export scripts, specialized versions of existing tools, develop tools not available in ArcToolbox.
  • Slide 43
  • Introduction to ModelBuilder Over the past semester, we've performed several geoprocessing tasks We have used geoprocessing tools in sequence to analyze GIS data ArcGIS allows you to link tools together to create a workflow
  • Slide 44
  • How ModelBuilder Works Drag layers you want to participate into the model Drag tools you want to use into the model Output layers, tables, objects shown in green Connect the features using arrows Order matters to certain tools (Clip)
  • Slide 45
  • Project elements (blue ovals) exist prior to model Tool to be executed (yellow rectangle) Derived data (green ovals) produced by tool Connector (arrow) showing sequence of processing Value or variable (light blue oval) such as numbers, strings, spatial references, and geographic extents. Derived value (light green oval) Model Builder Elements
  • Slide 46
  • Slide 47
  • Slide 48
  • Slide 49
  • Model Builder Toolbar
  • Slide 50
  • Single Input Model: Area Within 100 meters of Streams?
  • Slide 51
  • Multiple Input Model Parcels Within Flood Zone
  • Slide 52
  • Multiple Outputs
  • Slide 53
  • Parcels that are: On The Market Near A School In Low Crime Area
  • Slide 54
  • Create A New Model
  • Slide 55
  • Drag Tool Into Model Builder Window
  • Slide 56
  • Drag and Drop Interface
  • Slide 57
  • Open Tool And Specify Input/Output/Query Expression
  • Slide 58
  • Validate, Then Run The Simple Model
  • Slide 59
  • Connect Output To Next Process
  • Slide 60
  • Example
  • Slide 61
  • Example: Multiple workflows in one Model reclassed road distance non-floodprone layer residential and wetlands plus buffer
  • Slide 62
  • Homework & Lab No HW for next week. Keep working on your project. Begin studying for the final test. Your graded HWs will be handed back to you next week. Lab on Wednesday (8 th ): Model builder