In [1]:
# Imported packages
import os, sys
sys.path.append(os.path.join('.', 'choropleth'))
from choropleth import ChoroHandler
# Show plots inline
%matplotlib inline
In [2]:
# Parameters
## Shapefiles
zipcode_shapefile = "./data/305113/tigerline_shapefile_2010_2010_state_colorado_2010_census_5-digit_zip_code_tabulation_area_zcta5_state-based"
road_definition_shapefile = "./data/tl_2010_08_prisecroads/tl_2010_08_prisecroads"
## Satellite Imagery
satellite_image = "./data/AERONET_BSRN_BAO_Boulder.2013351.aqua.250m.tif"
## Data and analytics
datafile = './data/trauma_cost_study_20140604.xlsx'
config_file = './config/config.json'
## Plot Variables
variable = 'HHI'
title='Household Income'
opts=dict(
zipcode_shapefile=zipcode_shapefile,
road_definition_shapefile=road_definition_shapefile,
satellite_image=satellite_image,
datafile=datafile,
config_file=config_file,
variable=variable,
title=title
)
In [3]:
# Execute
ch=ChoroHandler(**opts)()
In [ ]: