1# Name: Select_Example2.py
2# Description: Select roads of Class 4 from major roads tin the gnatcatcher habitat study area
3
4# Import system modules
5import arcpy
6from arcpy import env
7
8# Set workspace
9env.workspace = "C:/data"
10
11# Set local variables
12in_features = "majorrds.shp"
13out_feature_class = "C:/output/majorrdsClass4.shp"
14where_clause = '"CLASS" = \'4\''
15
16# Execute Select
17arcpy.Select_analysis(in_features, out_feature_class, where_clause)
18