In this final section, you'll create a new tool in the Migration Patterns toolbox that can be used to visualize elk migration patterns in one-week increments that have beginning and end dates, as specified through the tool. The tool will also export maps in the PDF format for each week:
Import the
arcpy.mapping
anddatetime
modules that will be used in this class:import arcpy import arcpy.mapping as mapping import csv import os import datetime
Create a new tool called
VisualizeMigration
by copying and pasting the existingImportCollarData
code and then renaming the class toVisualizeMigration
.In the
VisualizeMIgration
class, set thelabel
anddescription
properties, as shown in the following code through the__init__
method:class VisualizeMigration(object): def __init__(self): """Define the tool (tool name is the name of the class).""" self.label = "Visualize Elk Migration" self.description = "Visualize Elk Migration" self...