Hybrid Plant Site Information
The purpose of this class is to house all site specific data, e.g., weather data.
- class hopp.simulation.technologies.sites.SiteInfo(data: dict, solar_resource_file: str = '', wind_resource_file: str = '', wave_resource_file: str = '', grid_resource_file: str = '', hub_height=97.0, capacity_hours: Iterable = [], desired_schedule: Iterable = [], curtailment_value_type: str = 'interconnect_kw', solar: bool = True, wind: bool = True, wave: bool = False, wind_resource_origin: str = 'WTK')
Bases:
BaseClassRepresents site-specific information needed by the hybrid simulation class and layout optimization.
- Parameters:
data – Dictionary containing site-specific information.
solar_resource_file – Path to solar resource file. Defaults to “”.
wind_resource_file – Path to wind resource file. Defaults to “”.
grid_resource_file – Path to grid pricing data file. Defaults to “”.
hub_height – Turbine hub height for resource download in meters. Defaults to 97.0.
capacity_hours – Boolean list indicating hours for capacity payments. Defaults to [].
desired_schedule – Absolute desired load profile in MWe. Defaults to [].
curtailment_value_type – whether to curtail power above grid interconnection limit or desired schedule. Options “interconnect_kw” or “desired_schedule”. Defaults to “interconnect_kw”.
solar – Whether to set solar data for this site. Defaults to True.
wind – Whether to set wind data for this site. Defaults to True.
wave – Whether to set wave data for this site. Defaults to True.
wind_resource_origin – Which wind resource API to use, defaults to WIND Toolkit
- data: dict
- solar_resource_file: Path | str
- wind_resource_file: Path | str
- wave_resource_file: Path | str
- grid_resource_file: Path | str
- hub_height: float64
- capacity_hours: ndarray[Any, dtype[_ScalarType_co]]
- desired_schedule: ndarray[Any, dtype[float64]]
- curtailment_value_type: str
- solar: bool
- wind: bool
- wave: bool
- wind_resource_origin: str
- n_timesteps: int
- lat: float64
- lon: float64
- year: int
- tz: int | None
- solar_resource: SolarResource | None
- wind_resource: WindResource | None
- wave_resoure: WaveResource | None
- elec_prices: ElectricityPrices | None
- n_periods_per_day: int
- interval: int
- follow_desired_schedule: bool
- polygon: Polygon | BaseGeometry
- vertices: ndarray[Any, dtype[float64]]
- kml_data: KML | None
- property boundary: BaseGeometry
- property bounding_box: ndarray
- property center: Point
- plot(figure=None, axes=None, border_color=(0, 0, 0), alpha=0.95, linewidth=1.0)
- kml_write(filepath, turb_coords=None, solar_region=None, wind_radius=200)
- static kml_read(filepath)
- static append_kml_data(kml_data, polygon, name)
- __init__(data: dict, solar_resource_file: str = '', wind_resource_file: str = '', wave_resource_file: str = '', grid_resource_file: str = '', hub_height=97.0, capacity_hours: Iterable = [], desired_schedule: Iterable = [], curtailment_value_type: str = 'interconnect_kw', solar: bool = True, wind: bool = True, wave: bool = False, wind_resource_origin: str = 'WTK') None
Method generated by attrs for class SiteInfo.
- _get_model_dict() dict
Convenience method that wraps the attrs.asdict method. Returns the object’s parameters as a dictionary.
- Returns:
The provided or default, if no input provided, model settings as a dictionary.
- Return type:
dict
- as_dict() dict
Creates a JSON and YAML friendly dictionary that can be save for future reloading. This dictionary will contain only Python types that can later be converted to their proper Turbine formats.
- Returns:
All key, vaue pais required for class recreation.
- Return type:
dict
- classmethod from_dict(data: dict)
Maps a data dictionary to an attr-defined class.
TODO: Add an error to ensure that either none or all the parameters are passed in
- Parameters:
data – dict The data dictionary to be mapped.
- Returns:
- cls
The attr-defined class.
- classmethod get_model_defaults() Dict[str, Any]
Produces a dictionary of the keyword arguments and their defaults.
- Returns:
Dictionary of keyword argument: default.
- Return type:
Dict[str, Any]
- property logger