"""Routines used for extracting the raw FERC 714 data."""
import logging
import warnings
import pandas as pd
import pudl
from pudl.settings import Ferc714Settings
[docs]logger = logging.getLogger(__name__)
[docs]TABLE_FNAME = {
"id_certification_ferc714": "Part 1 Schedule 1 - Identification Certification.csv",
"gen_plants_ba_ferc714": "Part 2 Schedule 1 - Balancing Authority Generating Plants.csv",
"demand_monthly_ba_ferc714": "Part 2 Schedule 2 - Balancing Authority Monthly Demand.csv",
"net_energy_load_ba_ferc714": "Part 2 Schedule 3 - Balancing Authority Net Energy for Load.csv",
"adjacency_ba_ferc714": "Part 2 Schedule 4 - Adjacent Balancing Authorities.csv",
"interchange_ba_ferc714": "Part 2 Schedule 5 - Balancing Authority Interchange.csv",
"lambda_hourly_ba_ferc714": "Part 2 Schedule 6 - Balancing Authority Hourly System Lambda.csv",
"lambda_description_ferc714": "Part 2 Schedule 6 - System Lambda Description.csv",
"description_pa_ferc714": "Part 3 Schedule 1 - Planning Area Description.csv",
"demand_forecast_pa_ferc714": "Part 3 Schedule 2 - Planning Area Forecast Demand.csv",
"demand_hourly_pa_ferc714": "Part 3 Schedule 2 - Planning Area Hourly Demand.csv",
"respondent_id_ferc714": "Respondent IDs.csv",
}
"""Dictionary mapping PUDL tables to filenames within the FERC 714 zipfile."""
[docs]TABLE_ENCODING = {
"id_certification_ferc714": "iso-8859-1",
"gen_plants_ba_ferc714": "iso-8859-1",
"demand_monthly_ba_ferc714": None,
"net_energy_load_ba_ferc714": None,
"adjacency_ba_ferc714": "iso-8859-1",
"interchange_ba_ferc714": "iso-8859-1",
"lambda_hourly_ba_ferc714": None,
"lambda_description_ferc714": "iso-8859-1",
"description_pa_ferc714": "iso-8859-1",
"demand_forecast_pa_ferc714": None,
"demand_hourly_pa_ferc714": None,
"respondent_id_ferc714": None,
}
"""Dictionary describing the character encodings of the FERC 714 CSV files."""