prereise.gather.solardata package

Subpackages

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.

Module contents