A PYTHON SCRIPT TO PAN-SHARPEN IMAGERY

Slides:



Advertisements
Similar presentations
Environmental GIS Nicholas A. Procopio, Ph.D, GISP Some slides from Lyna Wiggins (Rutgers University)
Advertisements

Why python? Automate processes Batch programming Faster Open source Easy recognition of errors Good for data management What is python? Scripting programming.
Python & ModelBuilder. Overview Python/ModelBuilder Concepts – The Geoprocessor – Checking some environment variables – Providing feedback from your model/script.
Josh Peschel Master of Science Candidate
ModelBuilder In ArcGIS 9.x By Tim Weigel GEOG 407/607 April 3 rd, 2006.
ModelBuilder at ArcGIS 9.2 Lyna Wiggins Rutgers University May 2008.
Introduction to Digital Data and Imagery
To find a suitable land to develop a dream vacation home GEO376 Final Python Project Helen Peng May 2010.
Habitat Analysis in ArcGIS Use of Spatial Analysis to characterize used resources Thomas Bonnot
Advance Model Builder Features. Advance Features Using Lists (also Batching) Iteration Feedback Model Only Tools Inline Variable Substitution Preconditions.
Using ESRI ArcGIS 9.3 Arc Tool Box 1 Data Management
Geography 121 Lab #4 Finding Landsat Data November 8, 2006 Dave Alleman Pat Clancy Sarah Gustafson.
Python & ModelBuilder. Continuing Education Python and ModelBuilder Overview Python/ModelBuilder Concepts –The Geoprocessor –Checking some environment.
Working with cursors in Python GISDE Python Workshop Qiao Li.
Welcome to DEP’s GIS Workshop Series Workshop 6 Using the ArcMap Pictometry Extension 1.
Matching school attendance boundaries with schools from CCD dataset.
Introduction to ArcPy. Topics What is ArcPy? Accessing geoprocessing tools using ArcPy Writing scripts using ArcPy.
Phase I Forest Area Estimation Using Landsat TM and Iterative Guided Spectral Class Rejection Randolph H. Wynne, Jared P. Wayman, Christine Blinn Virginia.
Best Practices for Managing Historical Imagery Cody Benkelman Kumar Dhruv.
Copyright © 2006 by Maribeth H. Price 8-1 Chapter 8 Geoprocessing.
What is an image? What is an image and which image bands are “best” for visual interpretation?
Stacked Landsat scene Land pixels deleted with polygon mask Stacked Landsat scene minus land Landsat Band 1 Bands 1, 2, 3, 4, 5, and 7 are stacked Stacked.
Preliminary Results of Mapping Carbon at the Pixel Level in East Kalimantan GCF Kaltim Project Global Observatory for Ecosystem Services, Department of.
Wetlands Investigation Utilizing GIS and Remote Sensing Technology for Lucas County, Ohio: a hybrid analysis. Nathan Torbick Spring 2003 Update on current.
Intro to Rasters Extracted from the ESRI course “Working with Rasters”
Juanita Cano City of Sacramento Spring 2014 Geography 375.
Introduction to Geographic Information Systems Fall 2013 (INF 385T-28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin.
Data Models, Pixels, and Satellite Bands. Understand the differences between raster and vector data. What are digital numbers (DNs) and what do they.
DEM TRAINING (DIGITAL ELEVATION MODEL). STEP 1 OPEN GIS.
Sub pixelclassification
William Perry U.S. Geological Survey Western Ecological Research Center Geography 375 Final Project May 22, 2013.
Lecture 10: Geoprocessing with Python (II) Dr. Taysir Hassan Abdel Hamid Associate Professor, Information Systems Dept., Faculty of Computers and Information.
Landsat Satellite Data. 1 LSOS (1-ha) 9 Intensive Study Areas (1km x 1km) 3 Meso-cell Study Areas (25km x 25km) 1 Small Regional Study Area (1.5 o x 2.5.
Outline of Script Import Modules Setup Workspace Environment and Assign Data Path Variables Summary of Script Title and Author Info.
Three Year Drought Analysis A Tasseled Cap Transformation Folsom Lake, CA Joseph Watkins GEOG 342 Final Project.
Introduction to GIS Programming Final Project Submitted by Todd Lenkin Geography 375 Spring of 2011 American River College.
Geog 121 Project 4: Finding LandSat Data
Image Geo-Referencing in ArcGIS
Improving Georeferencing Workflow with Python
Spatial Models – Raster Stacy Bogan
Environmental GIS Nicholas A. Procopio, Ph.D, GISP
Review (filter and surface analysis) Map Transformation
Tan Hoang GEOG 362 – Final Project
Final Project: Read from a csv file and write to a database table
Attribute Extraction.
Spatial Data Processing
Lecture 9 Using Python for Geoprocessing
Technology & Tools Used for Capacity Building at USGS
New McIDAS-V Features VIIRS Imagery Team Telecon 7 May 2013
Review- vector analyses
Topics Introduction to File Input and Output
Geography 121 Lab #4 Finding Landsat Data
The University of Texas – Pan American
URBDP 422 Urban and Regional Geo-Spatial Analysis
This lecture Introduction to arcpy Debugging Using arcpy.
Summary - end of term Lab Monday: 4 April return of assignments Lecture exam: 5 April, projects by end of term: April 6 Lecture evaluation.
Manipulating and Sharing Data in a Database
Automating Analyses with ModelBuilder
Geog 121 Project 4: Finding LandSat Data
Image Processing in ArcGIS
Topics Introduction to File Input and Output
Virginia Lenvik Geography 375 Spring 2013
Clip, Merge, Cluster, and Repeat
Image Classification of the Upper South Fork Eel River Watershed
Automating Student Yield Data Extraction
Clip & Convert to ASCII Program Kelly Knapp Spring 2010
Calculating land use change in west linn from
Final Project Geog 375 Daniel Hewitt.
Ideal Parcels Locator Script
Presentation transcript:

A PYTHON SCRIPT TO PAN-SHARPEN IMAGERY & SUBSET IT WITH A QUARTERQUAD SHAPEFILE FINAL PROJECT CHRIS CURLIS GEOGRAPHY 376 AMERICAN RIVER COLLEGE SPRING 2010 NATHAN JENNINGS, INSTRUCTOR MAY 14, 2010

The goal of this project was to create a python script which would pan-sharpen a Landsat 7 image and subset the new sharpened imagery by quarterquad. A shapefile was first created of those quarterquads which were of interest because they had no gaps from the SLC malfunction. The final products are: A full pan-sharpened Landsat 7 TM scene A set of shapefile boundaries for each quarterquad of interest A set of pan-sharpened TM quarterquad images

Due to scan line corrector malfunction, imagery has LANDSAT 7 IMAGERY Test Due to scan line corrector malfunction, imagery has gaps on either side but there is a path in the middle of the image with no gaps.

Statewide grid of quarterquads overlaying Landsat 7 TM imagery.

Close up of gap and gap free area in image

A statewide quarterquad shapefile was used To identify which quarterquads have no gaps

A statewide quarterquad shapefile was used To identify which quarterquads have no gaps This shapefile(NoGaps.shp) was created by visually selecting q-quads with no gaps in imagery.

Arc Toolbox has a tool for creating pan-sharpened imagery using coarser (30 meter) multispectral imagery with finer (15 meter) panchromatic imagery The toolbox was used to study and generate a python script example of pan-sharpening

The parameters needed for pan-sharpening. Greatest weight is given to the infrared band of imagery. The weights can be set or defaults used based on pan-sharpening type.

The python script checks for a pre-existing pan-sharpened image and deletes it. The variables are from modelbuilder exported script. The script creates a new pan-sharpened image of the full Landsat 7 scene.

Next a search cursor is created that loops through all the records in the table for NoGaps.shp A portion of the script checks for the existence of the entire “Outputs” directory which has over 100 files and deletes it. a new “Outputs” directory is then created.

Two of the fields in the NoGaps.shp table are combined to name the mask shapefiles and the subset pan-sharpened images: “USGSID” and “Qdrnt” since “QQNAME” has spaces in it.

This “try” statement of the script begins looping through the FID values using “while” and gives a name combining “USGSID” and “Qdrnt”. The selected quarterquads become new individual shapefiles and these shapefiles are used with “extract by mask” on the pan-sharpened Landsat 7 TM scene to create individual quarterquad images. Using row = rows.Next(), the script continues looping until all FID’s have been selected and new files created. The script then prints: “Script completed…all quarterquads have been clipped”

The script begins:

The script finishes:

30 meter resolution multispectral Landsat imagery

15 meter resolution panchromatic Landsat imagery

15 meter resolution pan-sharpened imagery quarterquad overlaying 30 meter Landsat imagery SUCCESS!