nprapps/ucr-clearance-parser

Name: ucr-clearance-parser

Owner: NPR visuals team

Description: parse uniform crime reporting clearance data

Created: 2015-03-10 21:01:46.0

Updated: 2017-07-11 19:23:56.0

Pushed: 2015-10-02 18:07:44.0

Homepage: null

Size: 7201

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

UCR Clearance Parser

The UCR Clearance Parser powers the NPR Visuals crime clearance lookup tool by processing raw FBI UCR clearance data and generating an agency lookup file and JSON files for each law enforcement agency.

Install

Requires PostgreSQL. See the NPR Visuals guide to set up a Mac development environment with PostgreSQL.

install -r requirements.txt
submodule update --init
Process data
ocess.sh

This generates approximately 22,000 JSON files of the form <ori7>.json (e.g. NY03030.json) and agency_names.csv in the output directory.

Deploy

Requires AWS environment variables to be set.

ploy.sh
Notes
License

MIT licensed, see LICENSE for details.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.