Skip to content

Importing Bridger Data

Emissions Import

Used for importing Bridger emission data.

CSV Format

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

HeaderTypeBlankHelp
Plume imageStringYESEach file referenced in this column must exist in the --data_path folder
Emission detectedBooleanNO(Yes/No) or (True, False)
LongitudeNumberNO
LatitudeNumberNO
Detection timestampDateNOISO format
Detected rateDecimalYESg/hr
Detection limitPositiveIntegerNOg/hr
ConcentrationDecimalYESppm*m

Notes:

  • Owner column is required for self-reported emissions, but is optional for third party. 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

In addition to the common arguments (environment, api_key, data_path), the Bridger script requires:

  • --data_source - Source of the data: SELF_REPORTED, THIRD_PARTY, or EPA
  • --contains_no_detects - Whether the data contains non-detects: 1 or 0

The following import parameters are set by the import script:

  • data_provider: "Bridger"

Example

Example of calling the Bridger script on dev environment:

bash
python -m importers.emissions.bridger --environment dev --api_key {API_KEY_VALUE} --data_path {PATH_TO_FOLDER} --data_source SELF_REPORTED --contains_no_detects 0

Nondetects Import

The Bridger nondetects import script can be used to import site non-detects using a CSV file.

CSV Format

The following headers must be present in the CSV file, and they cannot be blank:

HeaderTypeBlankHelp
aershed_site_idStringNOPrimary key of the Site database in the platform
timeDateTimeNOISO format
detection_limit_kghNumberNODetection limit in kg/h

Note: Any additional fields will be stored as extra data object.

Script Arguments

In addition to the common arguments, the nondetects script requires:

  • --owner - The exact name of a company (must exist in the database)

Example

Example of calling the Bridger nondetect import script on prod-testing environment:

bash
python -m importers.nondetects.bridger --environment staging --api_key {API_KEY_VALUE} --data_path {PATH_TO_FOLDER} --owner "A100"