fied.scc package

Submodules

fied.scc.scc_describe module

fied.scc.scc_unit_id module

class SCC_ID[source]

Bases: object

Use descriptions of SCC code levels to identify unit type and fuel type indicated by a complete SCC code (e.g., 30190003). The U.S. EPA uses Source Classification Codes (SCCs) to classify different types of activities that generate emissions. Each SCC represents a unique source category-specific process or function that emits air pollutants. The SCCs are used as a primary identifying data element in EPA’s WebFIRE (where SCCs are used to link emissions factors to an emission process), the National Emissions Inventory (NEI), and other EPA databases.

Eight digit SCC codes, such as ABBCCCDD, are structured as follows:

A: Level 1 BB: Level 2 CCC: Level 3 DD: Level 4

See SCC documentation for additional information: https://sor-scc-api.epa.gov/sccwebservices/sccsearch/docs/SCC-IntroToSCCs_2021.pdf

get_complete_scc()[source]

Download full set of SCC codes from EPA and save to self._complete_scc_filepath. Note that downloading directly from website assignes filename for csv based as ‘SCCDownload-{y}-{md}-{t}.csv’

load_complete_scc()[source]

Complete list of SCC codes (available from https://sor-scc-api.epa.gov/sccwebservices/sccsearch/) have been manually downloaded.

Returns:

all_scc

Return type:

pandas.DataFrame

static scc_query_split(scc)[source]

Uses EPA SCC Web Services to get level information for an 8- or 10-digit SCC.

Parameters:

scc (int) – Eight or 10-digit Source Classification Code.

Returns:

scc_levels – Dictionary of all four level names

Return type:

dict

build_id()[source]

Identify all relevant unit types and fuel types in SCCs.

Returns:

all_scc – Complete SCC codes with added columns of unit types and fuel types.

Return type:

pandas.DataFrame

id_external_combustion(all_scc)[source]

Method for identifying relevant unit and fuel types under SCC Level 1 External Combustion (1)

Parameters:

all_scc (pandas.DataFrame) – Complete list of SCCs.

Returns:

scc_exc – SCC for external combustion (SCC Level 1 == 1) with unit type and fuel type descriptions.

Return type:

pandas.DataFrame

id_ice(all_scc)[source]

Method for identifying relevant unit and fuel types under SCC Level 1 Internal Combustion Engines (2)

Parameters:

all_scc (pandas.DataFrame) – Complete list of SCCs.

Returns:

scc_ice – SCC for external combustion (SCC Level 1 == 2) with unit type and fuel type descriptions.

Return type:

pandas.DataFrame

id_stationary_fuel_combustion(all_scc)[source]

Method for identifying relevant unit and fuel types under SCC Level 1 Stationary Source Fuel Combustion (21; note this is a 10-digit SCC code)

Parameters:

all_scc (pandas.DataFrame) – Complete list of SCCs.

Returns:

scc_ice – SCC for external combustion (SCC Level 1 == 2) with unit type and fuel type descriptions

Return type:

pandas.DataFrame

id_chemical_evaporation(all_scc)[source]

Method for identifying relevant unit and fuel types under SCC Level 1 Chemical Evaporation (4)

Parameters:

all_scc (pandas.DataFrame) – Complete list of SCCs.

Returns:

scc_chee – SCC for Chemical Evaporation (SCC Level 1 == 4) with unit type and fuel type descriptions

Return type:

pandas.DataFrame

id_industrial_processes(all_scc)[source]

Method for identifying relevant unit and fuel types under SCC Level 1 Industrial Processes (3)

Parameters:

all_scc (pandas.DataFrame) – Complete list of SCCs.

Returns:

scc_ind – SCC for Industrial Processes (SCC Level 1 == 3) with unit type and fuel type descriptions

Return type:

pandas.DataFrame

main()[source]

Module contents