Virtual: Getting Started with the Python Scripting Language - 1 Day

mewstennisSoftware and s/w Development

Nov 4, 2013 (3 years and 5 months ago)

71 views

Training
Course
Outline
Who should attend
It is envisaged that attendees will be GIS professionals who wish
to have a solid understanding of the Python language who wish to
write geoprocessing scripts within the ArcGIS environment.
Note: This course is a pre-requisite to “Mastering Geoprocessing
Scripts using the Python Scripting Language 9.3” and
“Introduction to Geoprocessing Scripts using Python 10”.
Goals
Those completing this course will be able to:
„ Write Python scripts
„ Understand the Python scripting language
„ Be familiar with techniques for debugging code and fixing
errors
„ Modularise code

Topics Covered
The Basics of Python:
Integrated Development Environments; scripting syntax; functions
and modules.
Debugging Your Code:
Checking for syntax errors; entering arguments into a script;
Debugging techniques; Try – Except statements
Working with Strings, Lists and Dictionaries:
Common String functions; Reading and writing to text files;
Common List functions; Investigating Dictionaries.
Key Python Modules:
Working with file pathways; Creating random data; working with Time;
Getting Help for the modules
Creating Custom Functions:
Python Modules; Writing functions; Using Variables; Importing
modules; Module security
Prerequisites
„ Use of a Windows operating System; Windows Explorer
Price
£315.00 + VAT
Related Courses
„ Mastering Geoprocessing Scripts using Python for ArcGIS
Desktop 9.3
„ Introduction to Geoprocessing Scripts using Python 10

Contact Us
For GIS training enquiries and bookings visit www.esriuk.com/training,
email us at training@esriuk.com or call us on 01296 745504
Overview
Python underpins many functions in both ArcGIS Desktop 9.3 and 10, such as automating geoprocessing tasks, manipulating the map
document and fixing broken layers. This virtual training course will teach you the underlying Python scripting language and will provide
you with a solid foundation to writing Python scripts. On completing this course you will have the necessary background skills to
undertake the relevant Python courses for ArcGIS Desktop.
Training the GIS Professional
Virtual: Getting Started with the Python
Scripting Language - 1 Day
Esri UK. Millennium House, 65 Walton Street, Aylesbury, Buckinghamshire HP21 7QG
T 01296 745504 | F 01296 745544 | E training@esriuk.com | www.esriuk.com/training
© ESRI (UK) Limited 2012. Registered in England and Wales No.1288342. VAT No.787 4307 91. Registered Address: Millennium House, 65 Walton Street, Aylesbury, Bucks HP21 7QG. All rights reserved.
The Esri globe and Esri products, services and trademarks mentioned are trademarks of Environmental Systems Research Institute, Inc. Other companies and products mentioned herein are the property of their respective trademark owners.
Training
Course
Outline

Esri UK. Millennium House, 65 Walton Street, Aylesbury, Buckinghamshire HP21 7QG
T 01296 745504 | F 01296 745544 | E training@esriuk.com | www.esriuk.com/training
© ESRI (UK) Limited 2012. Registered in England and Wales No.1288342. VAT No.787 4307 91. Registered Address: Millennium House, 65 Walton Street, Aylesbury, Bucks HP21 7QG. All rights reserved.
The Esri globe and Esri products, services and trademarks mentioned are trademarks of Environmental Systems Research Institute, Inc. Other companies and products mentioned herein are the property of their respective trademark owners.
Training the GIS Professional
Virtual: Getting Started with the Python
Scripting Language - 1 Day
Topics in detail
The basics of Python
„ Where to write code
„ PythonWin Interface
„ IDLE Interface
„ Comments
„ Variables in Python
„ Introducing Strings
„ Introducing Numbers and Lists
„ Line continuation characters
„ Built-In functions
„ Accessing modules
„ Statements
„ Decision making syntax
„ Looping syntax
„ Case sensitivity rules
„ Resources
Debugging your code
„ Testing your code
„ Checking for syntax errors
„ Entering arguments
„ Debugging techniques: Interactive Window
„ Debugging techniques: Print statement
„ Debugging techniques: Comment code
„ Debugging techniques: Debugger Toolbar
„ Examine your code
„ Try ... except statement
Working with Strings, Lists and Dictionaries
„ Manipulating Strings
„ Changing the contents of a String
„ Writing to a text file
„ Reading a text file
„ What you can do with Lists
„ Adding items to a List
„ Finding the number of items in a List
„ Python Dictionaries
„ What you can do with Dictionaries
„ Accessing a Dictionary sequentially
Key Python modules
„ Existing Python modules
„ Getting help
„ sys: Controlling the termination of your script
„ os: Working with data
„ random: Creating a random selection
„ clock / time: Determining elapsed time
Creating custom functions
„ Python modules
„ Writing custom functions
„ Creating a module
„ Writing a function
„ Using variables
„ Importing a custom function
„ Finding the module
„ Adding a custom search path
„ Compiling the moduleReloading a module in a single Python
session
„ Running the module
„ Ways of importing a module
„ Code order
„ Controlling access to functions and variables