prereise.gather.solardata package¶
Subpackages¶
- prereise.gather.solardata.ga_wind package
- prereise.gather.solardata.nsrdb package
- prereise.gather.solardata.tests package
- Submodules
- prereise.gather.solardata.tests.mock_pv_info module
- prereise.gather.solardata.tests.test_helpers module
- prereise.gather.solardata.tests.test_pv_tracking module
test_ratio_state_with_multiple_plants_and_tracking_systems()
test_ratio_state_with_single_plant_and_multiple_tracking()
test_ratio_state_with_single_plant_and_unique_tracking()
test_state_exists()
test_state_type()
test_state_with_solar_return_3ple()
test_state_without_no_solar_return_none()
test_sum_ratio_state_with_multiple_plants_and_tracking_systems()
test_sum_ratio_state_with_single_plant_and_multiple_tracking_systems()
test_sum_ratio_state_with_single_plant_and_tracking_system()
- Module contents
Submodules¶
prereise.gather.solardata.helpers module¶
- prereise.gather.solardata.helpers.get_plant_id_unique_location(plant)[source]¶
Identify unique location among plants.
- Parameters:
plant (pandas.DataFrame) – plant data frame.
- Returns:
(dict) – keys are coordinates. Values is a list of ‘plant_id’.
- Raises:
TypeError – if ‘plant’ is not a data frame.
ValueError – if ‘plant_id’ is not the index and/or ‘lat’ and ‘lon’ are not among the columns.
- prereise.gather.solardata.helpers.to_reise(data)[source]¶
Format data for REISE.
- Parameters:
data (pandas.DataFrame) – data frame as returned by
prereise.gather.solardata.nsrdb.naive.retrieve_data()
,prereise.gather.solardata.ga_wind.ga_wind.retrieve_data()
- Returns:
(pandas.DataFrame) – data frame formatted for REISE.
- Raises:
TypeError – if ‘data’ is not a data frame.
ValueError – if ‘Pout’, ‘plant_id’, ‘ts’ and ‘ts_id’ are not among the columns.
prereise.gather.solardata.pv_tracking module¶
- prereise.gather.solardata.pv_tracking.get_pv_tracking_data()[source]¶
Load solar PV information from EIA860 for all plants installed in 2016.
- Returns:
(pandas.DataFrame) – solar pv plant information as found in form EIA860
- prereise.gather.solardata.pv_tracking.get_pv_tracking_ratio_state(pv_info, state)[source]¶
Get solar PV tracking technology ratios for the query state in 2016 from EIA860
- Parameters:
pv_info (pandas.DataFrame) – solar pv plant information as found in form EIA860 as returned by
get_pv_tracking_data()
.state (list) – the query state(s).
- Returns:
(tuple) – tracking technology proportion (fix, 1-axis, 2-axis) for the query state in 2016.
- Raises:
ValueError – if state is invalid.