Aizkhpz5qneourkqxooy discover spatial writing parsable python arcgis pro

Writing Parsable Python for ArcGIS Pro Field Calculations

Gain practical experience with Python in the Calculate Field tool of ArcGIS Pro

To perform field calculations using its Calculate Field tool, ArcGIS Pro uses its underlying Python parser so knowledge of Python syntax is important for performing more complex field calculations.

In this 45 minute course of 7 videos, which is suitable for English-speaking students from anywhere in the world, you will:

  • Add test fields ready to work with integer and floating point numbers, text, and dates.
  • Calculate fields of various types to numeric values.
  • Perform calculations between fields of different data types.
  • Write Code Blocks to define Python functions.
  • Implement if/else/elif logic within Python functions.
  • Work with Null values in fields.
  • Change case and perform replacements within text strings.
  • Calculate fields to hold shape geometry properties like vertex counts.
  • Work with dates.
  • Plus much more.

Before commencing this course you should:

  • check that you have suitable versions of any software required for this course, and
  • download any required data

Checking your version of ArcGIS Pro

This particular course was recorded using ArcGIS Pro at version 1.1.1 but should also work at earlier versions 1.0, and 1.1, and any later versions like 1.2 which is soon to be released.

If you are unsure how to check the version of ArcGIS Pro that you are using then please view Check your ArcGIS Pro version from PolyGeo's YouTube video channel.

If you do not have access to a suitable version of ArcGIS Pro then perhaps consider purchasing ArcGIS for Home Use from Esri (direct if you are in the US, or via one of its distributors, if elsewhere). The cost is understood to be about $100 per annum, and includes an Advanced level license of ArcGIS for Desktop and ArcGIS Pro, as well as many of their extensions.

Checking your version of Python

This course also uses Python and was recorded using IDLE at version 3.4.1 which comes with ArcGIS Pro 1.1.1. If you are using an earlier or later version of ArcGIS Pro then the version number may not be quite the same. However it is critical that, when working with ArcGIS Pro 1.x, you are using Python 3.x.

If you are unsure how to check the version of Python that you are using then please view Check your Python Version for ArcGIS Pro and/or ArcGIS for Desktop via IDLE from PolyGeo's YouTube video channel.

Downloading Natural Earth data

This course uses up to four shapefiles which can be downloaded from Natural Earth:

  • ne_10m_admin_0_countries.shp (Countries - polygons)
  • ne_10m_admin_1_states_provinces.shp (States and Provinces - polygons)
  • ne_10m_populated_places.shp (Populated Places - points)
  • ne_10m_railroads.shp (Railroads - lines)

In the lesson videos these will be found in the C:\polygeo folder, so it is recommended that you place them there too.

It is also recommended that you keep a copy of the polygeo folder, with these four shapefiles, as they were immediately after downloading, so that if you want to repeat the course, or undertake another eLearning video tutorial from PolyGeo via Discover Spatial, then it will be available to copy instead of having to re-download the data.

If you do not already have the C:\polygeo folder with the above four shapefiles, then please view Download Natural Earth Data and Preview in ArcGIS Pro from PolyGeo's YouTube video channel

Your Instructor

Graeme Browning
Graeme Browning

Graeme provides training, consulting and support in:

  • ArcGIS for Desktop;
  • ArcGIS Pro;
  • ArcPy/Python and ModelBuilder/Geoprocessing generally;
  • ArcGIS Online and Story Maps;
  • Family HiStory Mapping; and
  • Google Earth .

He has been using Esri software for over 25 years (18 of those with Esri International Distributors in the United Kingdom and Australia), and Google Earth for more than 5 years, and works with the latest versions of the ArcGIS platform and Google Earth.

Class Curriculum

Available in days
days after you enroll
  Adding and Calculating Fields using various Data Types
Available in days
days after you enroll
  Working with Dates in Field Calculations
Available in days
days after you enroll

Frequently Asked Questions

When does the course start and finish?
The course starts now and never ends! It is a completely self-paced online course - you decide when you start and when you finish.
How long do I have access to the course?
How does lifetime access sound? After enrolling, you have unlimited access to this course for as long as you like - across any and all devices you own.
What if I am unhappy with the course?
We would never want you to be unhappy! If you are unsatisfied with your purchase, contact us in the first 30 days and we will give you a full refund.

This course is not open for enrolment.