dwind.resource#

Provides the ResourcePotential class for gathering pre-calculated reV generation data.

Classes

ResourcePotential(parcels, model_config, sector)

Helper class designed to retrieve pre-calculated energy generation data from reV.

class dwind.resource.ResourcePotential(parcels, model_config, sector, tech='wind', year=2018)[source]#

Helper class designed to retrieve pre-calculated energy generation data from reV.

create_rev_gid_to_summary_lkup(configs, *, save_csv=True)[source]#

Creates the reV summary tables based on the “gid” mappings in parcels.

Parameters:
  • configs (list[str]) – The list of technology-specific configurations where the generation data should be retrieved.

  • save_csv (bool, optional) – If True, save the resulting lookup calculated from reV to the reV folder definied in Configuration.rev.generation.{tech}_DIR. Defaults to True.

Returns:

reV generation lookup table for the technology-specific configurations in

configs.

Return type:

pd.DataFrame

find_rev_summary_table()[source]#

Creates the generation summary data for each of the tech-specific configurations specified in config.rev.settings.{tech}, then maps it to the agent data (parcels), overwriting any previously computed data.

match_rev_summary_to_agents()[source]#

Runs the energy generation gathering and merging steps, and retursns back the updated df agent/parcel data.

Returns:

Updated agent/parcel data with rec/alculated “wind_aep” or “solar_aep”

information for each agent.

Return type:

pd.DataFrame

merge_gen_to_agents(tech_agents)[source]#

Merges tech_agents to the parcel data df.

Parameters:

tech_agents (pd.DataFrame) – The technology-specific energy generation data.

prepare_agents_for_gen()[source]#

Create lookup column based on each technology.