Skip to content

Importing EPA Data

Used for importing EPA notification data. Two data providers are supported: EPA SEP NOTIFIED and EPA SEP SCRAPED.

CSV Format

The following headers must be present in the CSV file, even though some of them can be blank:

HeaderTypeBlankHelp
Notification report idStringNOUnique id given by EPA for each notification
OwnerStringNOName of the company, must exist in our db. This field will be ignored for EPA SEP SCRAPED
Longitude nad83NumberNOLongitude in NAD83 coord system
Latitude nad83NumberNOLatitude in NAD83 coord system
Detection dateDateNOISO format
Notification dateDateNOISO format
Detected rate g_hrDecimalNOg/hr
Detected rate uncertainty g_hrDecimalNOg/hr
Notifier nameStringYES
Provider nameStringYES
EPA identified siteStringNO
Wind speedDecimalYESm/s
Wind directionDecimalYESdegrees
TemperatureDecimalYESF (stored in °C)
HumidityDecimalYESg/kg
Due DateDateYESISO format

Notes:

  • Owner column is required, but only for EPA SEP NOTIFIED data provider. For EPA SEP SCRAPED, owner column will be ignored. If owner is present, any company found in the file must exist in the platform, or the import script will fail.
  • Any additional fields will be stored as extra data object.

Script Arguments

EPA script requires no additional arguments beyond the common ones (environment, api_key, data_path).

Additional argument:

  • --source - Source type: notified or scraped

Example

Example of calling the EPA script on dev environment:

bash
python -m importers.emissions.epa --environment dev --api_key {API_KEY_VALUE} --data_path {PATH_TO_FOLDER} --source notified

Or for scraped data:

bash
python -m importers.emissions.epa --environment dev --api_key {API_KEY_VALUE} --data_path {PATH_TO_FOLDER} --source scraped