Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated 2020 data for EPA_AirPollutantEmission_Level1 #1111

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions scripts/us_epa/national_emissions_inventory/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# US-EPA: National Air Pollutant Emissions Data

## About the Dataset
This dataset has Air Pollution Emission data for the County and Tribal geographic levels in the United States for the years 2008 to 2017.


### Download URL
The data in zip formats are downloadable from https://www.epa.gov/air-emissions-inventories/national-emissions-inventory-nei.
The actual URLs are listed in download_config.py.


### API Output
These are the attributes that we will use
| Attribute | Description |
|-------------------------------|-----------------------------------------------------------|
| dataset | The Year of the emission estimates provided. |
| fips code | The Area of the emission estimates provided. |
| scc | Source from where the pollution is emitted. |
| pollutant code | The Gas generated which pollutes the Air. |
| pollutant type(s) | The type of Gas generated which pollutes the Air. |

### Cleaned Data
Cleaned data will be inside [output/national_emissions.csv] as a CSV file with the following columns.

- year
- geo_Id
- SV
- Measurement_Method
- observation
- unit


### MCFs and Template MCFs
- [output/national_emissions.mcf]
- [output/national_emissions.tmcf]


### Running Tests

Run the test cases

`run_tests.sh -p scripts/us_epa/national_emissions_inventory`


### Import Procedure

The below script will download the data.

point - `python3 download_input_files.py point`
nonpoint - `python3 download_input_files.py nonpoint`
onroad - `python3 download_input_files.py onroad`
nonroad(default) - `python3 download_input_files.py nonroad`
all - `python3 download_input_files_all.py`

The below script will clean the data, Also generate final csv, mcf and tmcf files.

`python3 process.py`
Loading
Loading