Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: pl
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (34 sloc) 1.056 kb
#!/usr/bin/env python
# Geocomp value declaring a row is not a geographic compontent
GEOCOMP_COMPLETE = '00'
# Summary level constants
SUMLEV_NATION = '010'
SUMLEV_STATE = '040'
SUMLEV_COUNTY = '050'
SUMLEV_COUNTY_SUBDIVISION = '060'
SUMLEV_TRACT = '140'
SUMLEV_PLACE = '160'
SUMLEV_BLOCK = '101'
# Summary levels to load
SUMLEVS = [SUMLEV_STATE, SUMLEV_COUNTY, SUMLEV_COUNTY_SUBDIVISION, SUMLEV_PLACE, SUMLEV_TRACT]
def filter_geographies(row_dict):
"""
This callback gets fired for every geography that is loaded.
The argument is a dictionary of columns from the geography
headers file.
If it returns true the geography will be loaded, otherwise
it will be skipped.
This is useful for limiting data to a county/city/whatever.
"""
return True
# Mongo
CENSUS_DB = 'census'
LABELS_DB = 'census_labels'
GEOGRAPHIES_COLLECTION = 'geographies'
GEOGRAPHIES_2000_COLLECTION = 'geographies_2000'
LABELS_COLLECTION = 'labels'
# S3
S3_BUCKETS = {
'staging': 'census-test',
'production': 'censusdata.ire.org',
}
Jump to Line
Something went wrong with that request. Please try again.