4/15/2015© 2009 Raymond P. Jefferis III Lect 04 - 1 Geographic Information Processing Raster Data Models Data files Metadata Cell size Cell alignment Resampling.

Slides:



Advertisements
Similar presentations
Digital Image Processing
Advertisements

A Comparison of Digital Elevation Models to Accurately Predict Stream Channels Spencer Trowbridge Papillion Creek Watershed.
Maps and Aerial Photos There are many different kinds of maps Geopolitical Topographic Shaded Relief, Photorectified or Standard Geologic Ecosystemic Meteorological.
5/12/2015© 2009 Raymond P. Jefferis III Lect Geographic Information Processing Data Analysis Watersheds Gradient path - Valleys - Ridges Flow analysis.
Section 2 Maps, Charts and Coordinate Systems Continued
With support from: NSF DUE in partnership with: George McLeod Prepared by: Geospatial Technician Education Through Virginia’s Community Colleges.
Topographic Maps A Topographic map, or contour map is used to show the shape of the Earth’s surface. Elevation is the height above or below sea level.
5/24/2015© 2009 Raymond P. Jefferis III Lect Geographic Image Processing Data Transformation and Filtering Noise in data Arrays Digital filtering.
Topographic Maps.
ROAD SCHOLARS 2014 EVENT OVERVIEW. MARK A. VANHECKE NATIONAL SCIENCE OLYMPIAD EARTH-SPACE SCIENCE EVENT CHAIR NSO ROAD SCHOLARS EVENT SUPERVISOR 1999/2000.
The Precision-Farming Guide for Agriculturalists Chapter Six
More Raster and Surface Analysis in Spatial Analyst
Geographic Information Systems
Geographic Information Systems. What is a Geographic Information System (GIS)? A GIS is a particular form of Information System applied to geographical.
CE Introduction to Surveying and Geographic Information Systems
GIS Tutorial 1 Lecture 6 Digitizing.
Digital Elevation Models And Relief Models 1DEM. Part 1: The Underlying Elevation Data 2DEM.
Understanding UTM.
Geographic Information Systems
Map Projections Displaying the earth on 2 dimensional maps
Introduction to ArcGIS for Environmental Scientists Module 2 – GIS Fundamentals Lecture 5 – Coordinate Systems and Map Projections.
8/23/2015© 2009 Raymond P. Jefferis III Lect Geographic Information Processing Spatial Interpolation Freed, et al, Magnetometer field readings of.
Applied Cartography and Introduction to GIS GEOG 2017 EL Lecture-3 Chapters 5 and 6.
GEOREFERENCING SYSTEMS
Image Registration January 2001 Gaia3D Inc. Sanghee Gaia3D Seminar Material.
ESRI GIS Software. Contents Data Types –ESRI Data Model –Shapefiles –Raster Data Digital Orthophoto Quadrangle Digital Elevation Model Digital Raster.
Geographic Information Systems Coordinate Systems.
Basic Coordinate Systems Grid Systems RG 620 May 09, 2013 Institute of Space Technology, Karachi RG 620 May 09, 2013 Institute of Space Technology, Karachi.
Georeferencing with Paper Maps  Map Basics  How to Georeference with Paper Maps  Latitude and Longitude Mathematically  Error Calculator.
ESRM 250 & CFR 520: Introduction to GIS © Phil Hurvitz, KEEP THIS TEXT BOX this slide includes some ESRI fonts. when you save this presentation,
5/25/2016© 2009 Raymond P. Jefferis III Lect Geographic Information Processing Vector Data Models - Points - Lines - TIGER ® Line Data - Areas Voronoi.
Geometric Correction It is vital for many applications using remotely sensed images to know the ground locations for points in the image. There are two.
Remote Sensing Image Rectification and Restoration
Coordinate Systems Global Coordinate System – Latitude, Longitude and elevation UTM – eastings and northings, reference points are the equator and the.
NR 422: Raster Analysis Jim Graham Spring Continuous vs. Categorized Continuous: –Like photographs –Satellite and aerial photos –Best for analysis.
How do we represent the world in a GIS database?
The world of RASTER data Modeling... Elevation....etc. The Spatial Analyst Extension.
Intro to Raster GIS GTECH361 Lecture 11. CELL ROW COLUMN.
Lecture 2 Introduction to GIS, Data models, Data structures.
Lecture 3 The Digital Image – Part I - Single Channel Data 12 September
GEOG 2007A An Introduction to Geographic Information SystemsFall, 2004 C. Earl A model is a ‘synthesis of data’ + information about how the data interact.
6/4/2016© 2009 Raymond P. Jefferis III Lect Geographic Information Processing Attribute Plotting Extracting data features Calculating derivatives.
Mapping Finding your way with Latitude and Longitude Coordinate Sets.
GIS Data Structures How do we represent the world in a GIS database?
Topographic Maps  Two-dimensional representation of a Three-dimensional surface.  Coordinate systems  Latitude/Longitude (spherical)  Universal Transverse.
Maps and photos - Chapter 6 & 7 All maps have common elements Scale Legend Coordinate system Orientation info- directional system Maps and photos - Chapter.
Quadrilateral Data Structure Geodetic latitude and longitude on GRS80/WGS 84 ellipsoid(NAD 83) Grid cell resolution constant N-S but progressively finer.
Principle Component Analysis (PCA)
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
West Hills College Farm of the Future. West Hills College Farm of the Future Precision Agriculture – Lesson 3 Basics of GIS A GIS system provides for.
Roger W. Brode & James Thurman U.S. EPA/OAQPS/AQAD Air Quality Modeling Group AERMAP Training NESCAUM Permit Modeling Committee Annual Meeting Mystic,
Roger W. Brode U.S. EPA/OAQPS/AQAD Air Quality Modeling Group AERMAP Training NESCAUM Permit Modeling Committee Annual Meeting New London, Connecticut.
Chapter 3- Coordinate systems A coordinate system is a grid used to identify locations on a page or screen that are equivalent to grid locations on the.
Surface Analysis Tools. Lesson 7 overview  Topographic data  Sources  Uses  Topographic analysis  Hillshade  Visibility  Contours  Slope, aspect,
Chapter 8 Raster Analysis.
Topographic Maps Two-dimensional representation of a Three-dimensional surface. Coordinate systems Latitude/Longitude (spherical) Universal Transverse.
Terrain modelling: the basics
نقشه های توپوگرافی مهدی کرد.
Topographic Maps Two-dimensional representation of a Three-dimensional surface. Coordinate systems Latitude/Longitude (spherical) Universal Transverse.
Maps and photos - Chapter 8
Shuttle Radar Topography Mission
Review for Midterm Exam
Topographic Map
Surface Analysis Tools
Maps Base maps Coordinate Systems, Datums, Projections
Survey of Archaeological Resources
Map Projections Displaying the earth on 2 dimensional maps
Topographic Map
Map Projections Displaying the earth on 2 dimensional maps
Michael L. Dennis, RLS, PE G67940_UC15_Tmplt_4x3_4-15
Presentation transcript:

4/15/2015© 2009 Raymond P. Jefferis III Lect Geographic Information Processing Raster Data Models Data files Metadata Cell size Cell alignment Resampling Smoothing Malvern Quadrangle - USGS DEM Data

4/15/2015© 2009 Raymond P. Jefferis III Lect Raster Data Files Taken at regular intervals covering an area The data cells are typically rectangular The area is defined by its corner coordinates The ordering of the data, within the file, determines the spatial location of each cell with respect to the corners

4/15/2015© 2009 Raymond P. Jefferis III Lect USGS Digital Raster Graphics Digital Geospatial Metadata 7.5-minute DRGs (scanned from older maps) Projection: typically 1927 North American Datum Available Scales: 1:12,000 (approx. 3.75' quadrangles) 1:24,000 (approx. 7.5' quadrangles - most common) 1:63,360 (approx. 15' quadrangles - abandoned) 1:100,000 (30' x 60' quadrangles) 1:250,000 (1˚ x 2˚ or 3 ˚ quadrangles) Data supplied in TIFF format

4/15/2015© 2009 Raymond P. Jefferis III Lect DRG Map Scale Comparison USGS Scale 1:24,000Scale 1:100,000

4/15/2015© 2009 Raymond P. Jefferis III Lect Digital Elevation Model (DEM) Data Arrays of regularly spaced elevations on south-to-north profiles, ordered west-to-east 7.5', 30', or 1˚ sets, skewed from longitudes ASCII or binary elevation values Universal Transverse Mercator (UTM) or geographic coordinate referenced Seamless version is National Elevation Data (NED)

4/15/2015© 2009 Raymond P. Jefferis III Lect DEM Availability Replaced by: – National Elevation Dataset (NED) and, – Spatial Data Transfer Standard (SDTS) data Download sites:

4/15/2015© 2009 Raymond P. Jefferis III Lect National Elevation Dataset (NED) Seamless raster dataset Available from USGS Elevations in meters Resolution: 1arc-sec (approx. 30-meters) Datum: North American Datum 1983 Metadata:

4/15/2015© 2009 Raymond P. Jefferis III Lect DEM Scan Format Standards for Digital Elevation models, Part 1, USGS

4/15/2015© 2009 Raymond P. Jefferis III Lect DEM Standards Download for use with your datasets. Download site:

4/15/2015© 2009 Raymond P. Jefferis III Lect Reading DEM Files in Mathematica ® ySR = Import[ "~/Desktop/DEMdata/PA/Malvern/ dem.sdts.tgz", {"SDTS", "SpatialRange"}] yER = Import[ "~/Desktop/DEMdata/PA/Malvern/ dem.sdts.tgz", {"SDTS", "ElevationRange"}] Spatial range result [meters]: {{446655, }, { , }} Elevation range result [feet]: {0, 720}

4/15/2015© 2009 Raymond P. Jefferis III Lect Extracting Data Parameters dims = Dimensions[yDat]; (* get metadata *) nbase = dims[[1]];(* Skip *) nrows = dims[[2]];(*number of data rows -> 465 *) ncols = dims[[3]]; (* number of data columns -> 358 *) minval = yER[[1]]; (* minimum altitude, feet *) maxval = yER[[2]]; (* maximmum altitude, feet *)

4/15/2015© 2009 Raymond P. Jefferis III Lect Reading DEM File in Mathematica ® Import data: yDat = Import[ "~/Desktop/DEMdata/PA/Malvern/ dem.sdts.tgz", {"SDTS", "Data"}]; Look at the elevation data of one row: y = yDat[[1, 465]] The result is: {0, 0, 0, 418, 408, 402, 394, 387, 375, 372, 386, 394, 393, 386, 378, 375, ¥ 372, 373, 373, 372, 371, 369, 361, 354, 348, 350, 350, 350, 350, 353, 354, ¥ 357, 358, 361, 364, 366, 368, 369, 379, 397, 407, 397, 388, 376, 367, 359, ¥ 352, 345, 340, 334, 329, 323, 316, 310, 306, 304, 304, 304, 305, 306, 308, ¥ 310, 312, 315, 320, 326, 330, 334, 337, 338, 338, 337, 334, 327, 322, 316, ¥ 304, 298, 292, 288, 286, 285, 285, 286, 290, 294, 302, 313, 321, 334, 350, ¥ 381, 400, 442, 486, 497, 483, 461, 449, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ¥ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ¥ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}

4/15/2015© 2009 Raymond P. Jefferis III Lect Viewing DEM File in Mathematica ® yGrf = Import[ "~/Desktop/DEMdata/PA/Malvern/ dem.sdts.tgz", "SDTS"]; Notes: Raster skew, leading to missing data, at edges of quadrangle Older file data Image slightly blurred

4/15/2015© 2009 Raymond P. Jefferis III Lect Plotting Data in Mathematica ® elev = Table[yDat[[1, r, c]], {r, 1, nrows, 1}, {c, 1, ncols, 1}]; ReliefPlot[elev, ColorFunction -> "GreenBrownTerrain"] Notes: First step makes table of sampled data, which can be used for further processing Second step plots it Image is crisp Pixels approx. 30 x 30 meters

4/15/2015© 2009 Raymond P. Jefferis III Lect Calculation, from Lecture #2 At 40˚ North latitude, 76˚ West longitude, a square of 7.5´ will have the planar dimensions: North_Distance = km meter cells East_Distance = km meter cells

4/15/2015© 2009 Raymond P. Jefferis III Lect Calculation, from File Data At 40˚ North latitude, ˚ West longitude, a square of 7.5´ will have the planar dimensions: North_Distance = km meter cells East_Distance = km meter cells Note: There is one more row and column in the file, so that the data go all the way to the edges.

4/15/2015© 2009 Raymond P. Jefferis III Lect Metadata Data about the data Gives resolution, units, datum, etc. Needed for interpreting data Data storage format given in specifications located separately

4/15/2015© 2009 Raymond P. Jefferis III Lect Selected Metadata ITEM_TYPE: SDTS DEM - 7.5X7.5 GRID CELL_NAME: Malvern X_RESOLUTION: 30 Y_RESOLUTION: 30 XY_UNITS: Meter Z_RESOLUTION: Z_UNITS: Foot HORIZONTAL_DATUM: North American Datum of 1927 PROJECTION: Transverse Mercator MIN_ELEVATION: 105 MAX_ELEVATION: 720 NORTH_LATITUDE: SOUTH_LATITUDE: WEST_LONGITUDE: EAST_LONGITUDE:

4/15/2015© 2009 Raymond P. Jefferis III Lect Calibration of Data Locate known landmark or benchmark feature coordinates Proportion pixel count to find data Draw mark at location on figure Replot data with modified feature Check with USGS topographic map

4/15/2015© 2009 Raymond P. Jefferis III Lect Example Antenna known to be on top of ridge: (* Bacton Hills Antenna Location *) antlat = ;[North] antlon = ;[West] Define quadrangle corners: (* Malvern Quadrangle Corners*) nelat = ; nelon = ; swlat = ; swlon = ;

4/15/2015© 2009 Raymond P. Jefferis III Lect Example (continued) Locate {x,y} data pixel of feature: (* Proportion Pixels from SW Corner*) latpt = Round[nrows*((antlat - swlat))/(nelat - swlat)]; lonpt = Round[ncols*((swlon - antlon))/(swlon - nelon)];

4/15/2015© 2009 Raymond P. Jefferis III Lect Example (continued) Draw crosshairs (set height to sea level!) (* Draw Crosshairs *) yDat[[1, latpt, lonpt]] = 0; yDat[[1, latpt + 1, lonpt]] = 0; yDat[[1, latpt + 2, lonpt]] = 0; yDat[[1, latpt - 1, lonpt]] = 0; yDat[[1, latpt - 2, lonpt]] = 0; yDat[[1, latpt, lonpt + 1]] = 0; yDat[[1, latpt, lonpt + 2]] = 0; yDat[[1, latpt, lonpt - 1]] = 0; yDat[[1, latpt, lonpt - 2]] = 0;

4/15/2015© 2009 Raymond P. Jefferis III Lect Example (plotted result) Crosshairs on ridgeline Location correct Plot oriented correctly Find corresponding Mathematica ® notebook in Models file as: MalvernBactonTest ==>

4/15/2015© 2009 Raymond P. Jefferis III Lect DTED Data File Format (1) User Header Label (UHL: 80 bytes) 1 (2) Data Set Identification Record (DSI: 648 bytes)81 (3) Accuracy Record (ACC: 2700 bytes)*729 (4) Data Records (3601 records at , 10642, 17856,etc. bytes/record)** ** The number of records is a function of the latitude. A count of 3601 is for cells between latitudes S50 and N50 degrees. Missing elevations are filled with 1 bits. Elevations are two-byte integers, high order first, and negatives are signed magnitude.

4/15/2015© 2009 Raymond P. Jefferis III Lect Reading DTED File See MalvernDTED notebook in Models directory

4/15/2015© 2009 Raymond P. Jefferis III Lect Reading DTED File Header (* Define and read in data for DTED data set *) Array[d, 2000, 2000]; s = OpenRead["~/Desktop/DTEDdata/w076n40.dt2"]; (*Read Header information *) uhl = ReadList[s, Character, 80]; dsi = ReadList[s, Character, 648]; acc = ReadList[s, Character, 2700];

4/15/2015© 2009 Raymond P. Jefferis III Lect Reading DTED File (* Read the data and convert to signed integer format *) (* Offset to Malvern Quadrangle *) mm = 1350; ll = 450; (* Width in rows *) For[j = mm, j < mm + ll, j++, { (* Read record header *) SetStreamPosition[s, j*7214]; bh = Read[s, Byte]; bl = Read[s, Byte]; c1 = 256*Read[s, Byte] + Read[s, Byte]; c2 = 256*Read[s, Byte] + Read[s, Byte]; c3 = 256*Read[s, Byte] + Read[s, Byte]; rr = 0;(* Read data column *) For[i = 0, i < ll + 1, i++,{ d[i, j - mm] = 256*Read[s, Byte] + Read[s, Byte]; }] }] Close[s];

4/15/2015© 2009 Raymond P. Jefferis III Lect Plotted Result Notes: (Malvern Quadrangle) High resolution [10 meters] Processing to Level 2 Data to edges One-column overlap at edges (451 columns)

4/15/2015© 2009 Raymond P. Jefferis III Lect Calibration Mark a known feature on plotted result and compare with its known location –Mountaintop –Stream intersection –Lake –Quarry

4/15/2015© 2009 Raymond P. Jefferis III Lect Calibration Notes: Crosshairs at Bacton Hill antenna site. Location correct

4/15/2015© 2009 Raymond P. Jefferis III Lect SRTM Files [.HGT ] Heights are signed two byte integers. The bytes are in Motorola "big-endian" order with the most significant byte first. Heights are in meters referenced to the WGS84/EGM96 geoid. Data voids are assigned the value SRTM1 files contain 3601 lines of 3601 samples each, with edge overlap. IMPORTANT! - NW-to-SE order

4/15/2015© 2009 Raymond P. Jefferis III Lect Reading SRTM1 Files See hgt2Test notebook in Models file Note: Data are in binary bytes, stored as rows (not columns), read from NW to SE (software will reverse).

4/15/2015© 2009 Raymond P. Jefferis III Lect Reading SRTM1 Files [.HGT] Array[d, 3601, 3601]; s = OpenRead["~/Desktop/N40W076.hgt", BinaryFormat -> True]; nn = 1350; nrows = 450; ncols = 450; For[j = 0, j < nrows + 1, j++, SetStreamPosition[s, nn* *( j)]; For[i = 0, i < ncols + 1, i++, d[i, j] = 256*BinaryRead[s, "UnsignedInteger8"] + BinaryRead[s, "UnsignedInteger8"] ]; ]; (* Close data file *) Close[s];

4/15/2015© 2009 Raymond P. Jefferis III Lect Results Notes: High resolution image Processed to remove voids No gaps at edges

4/15/2015© 2009 Raymond P. Jefferis III Lect Resampling Result is new image derived from original Each pixel is weighted sum of surrounding pixels Principal methods –Straight sampling (to reduce raster points) –Bilinear interpolation (for off-grid points) –Cubic convolution (for regular raster points)

4/15/2015© 2009 Raymond P. Jefferis III Lect Simple Resampling Pick every n th pixel No pixel averaging Result is fewer pixels but no noise reduction Images look “jaggy”

4/15/2015© 2009 Raymond P. Jefferis III Lect Simple Resampling [5:1] sampledelev = Table[d[r + rowmin, c + colmin], {r, 0, nrows, 5}, {c, 0, ncols, 5}]; ReliefPlot[sampledelev, AspectRatio -> / , ColorFunction -> "GreenBrownTerrain"] Note: Pixel aspect ratio is defined from calculation results of Slides 15 and 16.

4/15/2015© 2009 Raymond P. Jefferis III Lect Resampled 2:1 and 5:1 Quadrangles

4/15/2015© 2009 Raymond P. Jefferis III Lect Re-sampling with Smoothing Pick every n th pixel Form new value from weighted sum of this pixel and its surrounding ones. Result: fewer pixels, some noise reduction Images look “jaggy”

4/15/2015© 2009 Raymond P. Jefferis III Lect Resulting Resampled Data Fewer pixels per square ground area More area can be covered Note: SRTM3 data could be used instead –30 x 30 meter (approx.) pixels –Each pixel averages nine (9) SRTM1 pixels –Averaging improves statistical accuracy

4/15/2015© 2009 Raymond P. Jefferis III Lect Bilinear Interpolation Pixel d 33 can be off-grid, others are nearby points for extrapolation Pixel d 33 is to be distance-weighted sum of pixels d 22, d 24, d 42, and d 44 x-distance is (x 33 /x 32 )*(x 34 -x 32 ) y-distance is (y 33 /y 43 )*(y 23 -y 43 ) Portion of data to be resampled to give value of data at new point, d 33

4/15/2015© 2009 Raymond P. Jefferis III Lect Convolution Value of raster point determined from weighted sum of others Simple averaging includes the 8 closest pixels, weighted by distance from the center pixel Cubic convolution uses the 16 closest pixels Convolution kernel needed Resulting values should be normalized by the sum of weights to retain proper scale

4/15/2015© 2009 Raymond P. Jefferis III Lect Averaging Convolution Kernel Note: Cells are weighted by distance from the center cell, and the array of weights is then normalized by the sum of weights.

4/15/2015© 2009 Raymond P. Jefferis III Lect Results Raw data represent 10 x 10 meter areas Averaged data represent 30 x 30 meter areas Raw data images are sharp; averaged data appear blurry. Raw data contours are jaggy; contours of averaged data are smoother. Images follow:

4/15/2015© 2009 Raymond P. Jefferis III Lect Raw and Averaged Data Images Raw Data - MalvernAveraged Data

4/15/2015© 2009 Raymond P. Jefferis III Lect Raw and Averaged Contours Raw Data - MalvernAveraged Data

4/15/2015© 2009 Raymond P. Jefferis III Lect Contours - Summary Smoothing important for contour maps Convolution is effective for processing

Questions? 4/15/2015© 2009 Raymond P. Jefferis III Lect