# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# Chapter3Model1.py
# Created on: 2014-04-22 21:59:31.00000
#   (generated by ArcGIS/ModelBuilder)
# Description: 
# ---------------------------------------------------------------------------

# Import arcpy module
import arcpy


# Local variables:
Bus_Stops = "C:\\Projects\\SanFrancisco.gdb\\SanFrancisco\\Bus_Stops"
CensusBlocks2010 = "C:\\Projects\\SanFrancisco.gdb\\SanFrancisco\\CensusBlocks2010"
Inbound71 = "C:\\Projects\\SanFrancisco.gdb\\Chapter3Results\\Inbound71"
Inbound71_400ft_buffer = "C:\\Projects\\SanFrancisco.gdb\\Chapter3Results\\Inbound71_400ft_buffer"
Intersect71Census = "C:\\Projects\\SanFrancisco.gdb\\Chapter3Results\\Intersect71Census"

# Process: Select
arcpy.Select_analysis(Bus_Stops, 
                      Inbound71, 
                      "NAME = '71 IB' AND BUS_SIGNAG = 'Ferry Plaza'")

# Process: Buffer
arcpy.Buffer_analysis(Inbound71, 
                      Inbound71_400ft_buffer, 
                      "400 Feet", "FULL", "ROUND", "NONE", "")

# Process: Intersect
arcpy.Intersect_analysis("C:\\Projects\\SanFrancisco.gdb\\Chapter3Results\\Inbound71_400ft_buffer #;C:\\Projects\\SanFrancisco.gdb\\SanFrancisco\\CensusBlocks2010 #", Intersect71Census, "ALL", "", "INPUT")
#Note that a list of feature classes can also be used for the Intersect input.
