Virginia Lenvik Geography 375 Spring 2013

Slides:



Advertisements
Similar presentations
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Advertisements

Why python? Automate processes Batch programming Faster Open source Easy recognition of errors Good for data management What is python? Scripting programming.
OCLC Online Computer Library Center CONTENTdm Developers Meeting ALA Midwinter Meeting Seattle, WA January 19 th, 2007 Claire Cocco, Product Manager Joe.
Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center Windows Python Tutorial Kurt Schwehr Jan 2007.
Trials and Tribulations of creating DDI Codebooks at the University of Guelph A.Michelle Edwards and Carol Perry, Data Resource Centre, University of Guelph.
ARIES User Group June 2, Today’s Presentation will cover:  Limitations to Ad Hoc report design in ARIES ReportExport  How to merge two ARIES reports.
Xpantrac connection with IDEAL Sloane Neidig, Samantha Johnson, David Cabrera, Erika Hoffman CS /6/2014.
1 Project 6: Cats in Tree. 2 Project 3: Cats in Tree In this project you will Create a class definition for a Cat class. Populate a BST with Cat information.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
PHP Tutorials 02 Olarik Surinta Management Information System Faculty of Informatics.
Databases Competency Demonstrate advanced database concepts, functions and integration techniques with other applications.
IAGAP Access Database A Tutorial. Databases There are several databases available from the IAGAP Project. There are several databases available from the.
Overview Cursors arcpy.da module Geometrys Arrays SpatialReferences
ABT 182 / HYD 182 Environmental Analysis using GIS Week 5-2 Filters & Analysis of vector data Functions & Modules.
Systems Development Lifecycle Testing and Documentation.
ArcGIS Pro: A Quick Tour of Python David Wynne.
1/22/2014PlantSteward.com Overview1 PlantSteward.com - Calendar and Document Management Features -
Advance Map Automation With Python
Chapter 17 Creating a Database.
Copyright © 2010 Certification Partners, LLC -- All Rights Reserved Perl Specialist.
Esri UC 2014 | Technical Workshop | Python Map Automation – Beyond the Basics of arcpy.mapping Jeff Barrette Jeff Moulds.
City of Richland Public Works GIS ESRI to CAD Script years experience in GIS industry Helped Launch (6) GIS programs  Civil Engineer Squadron /
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
To return to the Main Menu.
GSA’s Vendor and Customer Self Service (VCSS).  View and Print Statements  View and print statements for your accounts.  Statement Search by Agreement.
Evolution of a production pipeline Marjorie M.K. Hlava President Access Innovations.
Reporting: Statements Most commonly used to account for payments ©2014 Comprehensive Finance, LLC.
ECDL. Word processing Work with documents and save them in different file formats Choose built-in options such as the Help function to enhance productivity.
Introduction Presenter: James Zollweg, Ph.D. Associate Professor of Water Resources and GIS The College at Brockport NYS GIS Association – Python Training,
IDLE An IDE for Python bundled with the program release Click on IDLE (Python GUI) in the Start menu under the Python program group  Get the IDLE Python.
Court Menu – Quick Link to Daily Batch Reports One click automatically runs the report for the current day.
Copyright © 2003 ProsoftTraining. All rights reserved. Perl Fundamentals.
Desktop Mapping: Building Map Books Jeff Barrette Michael Grossman.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Juanita Cano City of Sacramento Spring 2014 Geography 375.
Student Centered ODS ETL Processing. Insert Search for rows not previously in the database within a snapshot type for a specific subject and year Search.
Public Libraries Survey Data File Overview. What We’ll Talk About PLS: Public Libraries Survey State level data Public library data (Administrative Entities)
William Perry U.S. Geological Survey Western Ecological Research Center Geography 375 Final Project May 22, 2013.
EXCEPTIONS. Catching exceptions Whenever a runtime error occurs, it create an exception object. The program stops running at this point and Python prints.
Module 6 ********* Data Loading Workforce Information Database Training Last update November 2006.
Preface IIntroduction Course Objectives I-2 Course Content I-3 1Introduction to Oracle Reports Developer Objectives 1-2 Business Intelligence 1-3 Enterprise.
FILES AND EXCEPTIONS Topics Introduction to File Input and Output Using Loops to Process Files Processing Records Exceptions.
Outline of Script Import Modules Setup Workspace Environment and Assign Data Path Variables Summary of Script Title and Author Info.
Introduction to GIS Programming Final Project Submitted by Todd Lenkin Geography 375 Spring of 2011 American River College.
Orders – Create Responses Boeing Supply Chain Platform (BSCP) Detailed Training July 2016.
Web Database Programming Using PHP
Jeff Barrette Jeff Moulds
Python Programming Challenge
Desktop Mapping: Building Map Books
Practical Office 2007 Chapter 10
Improving Georeferencing Workflow with Python
Web Database Programming Using PHP
Final Project: Read from a csv file and write to a database table
Geography 375 Introduction to Python May 15, 2015
Automating reports with Python
Topics Introduction to File Input and Output
Adjunct & Overload Payroll
InControl R2 Overview Running Reports.
Building Map Books in ArcGIS
Building Map Books in ArcGIS
The Use of Looping Code in Map Production
Topics Introduction to File Input and Output
Midwest-bound A Site Suitability Analysis of South Bend, Indiana for Relocation by Joi Misenti Geog 375--Spring 2016.
Processing of NOAA Precipitation Data and Thematic Map Generation
Clip, Merge, Cluster, and Repeat
Automating Student Yield Data Extraction
Final Project Geog 375 Daniel Hewitt.
Ideal Parcels Locator Script
Geog 375 Individual Final Programming Project: Automated Thematic Maps
Desktop Mapping: Building Map Books
Presentation transcript:

Virginia Lenvik Geography 375 Spring 2013 Updating Environmental Sampling Data for Routine Reporting Deliverables Using Python Scripting Virginia Lenvik Geography 375 Spring 2013

ArcMap Template Final Map in PDF format Three sites are sampled for contamination based on a scheduled plan Final deliverable is a PDF map with most recent sampling results posted ArcMap Template Final Map in PDF format

Beginning the Script The purpose of the script is documented and some metadata is recorded The arcpy modules are imported Traceback helps identify where errors are occurring and is used in the except statement Variables are set for updating the map elements Workspace is set Variables are set for creating the join and search cursor Documentation within the script is very important

An interesting problem occurred with rstrip An interesting problem occurred with rstrip. The last character in one file name had to be added back in with code (see the ‘s’ below) Printing the query helped find the problem: Sample_location.Name = Results_v3.SampleID

Two files are joined and a search cursor finds the matching records It is useful to print the result of the search to the Python shell to be sure the correct data has been retrieved and that it is complete At this point the update should occur The next step uses the mapping module functions to complete the deliverables

A map template contains placeholders for the title and date etc A map template contains placeholders for the title and date etc. which are modified when the script is run

Map elements and dataframe extents are modified by the script Final PDFs are named and exported