Wind Resource (Wind Toolkit Dataset on NREL HPC)#

If enabled, wind resource data can be loaded from the NREL HPC (Kestrel) hosted Wind Integration National Dataset (WIND) Toolkit dataset. This functionality leverages the NREL REsource eXtraction (rex) tool. Information on NREL HPC file systems and datasets can be found here.

class hopp.simulation.technologies.resource.wind_toolkit_data.HPCWindData(lat, lon, year, wind_turbine_hub_ht, wtk_source_path='', filepath='')#

Bases: Resource

Class to manage Wind Resource data from Wind Toolkit Datasets

Parameters:
  • lat (float)

  • lon (float)

  • year (int)

  • wind_turbine_hub_ht (float)

  • wtk_source_path (str | Path)

  • filepath (str)

wtk_file#

(str) path of file that resource data is pulled from

site_gid#

(int) id for Wind Toolkit location that resource data was pulled from

wtk_latitude#

(float) latitude of Wind Toolkit location corresponding to site_gid

wtk_longitude#

(float) longitude of Wind Toolkit location corresponding to site_gid

__init__(lat, lon, year, wind_turbine_hub_ht, wtk_source_path='', filepath='')#

Class to pull wind resource data from WIND Toolkit datasets hosted on the HPC

Parameters:
  • lat (float) – latitude corresponding to location for wind resource data

  • lon (float) – longitude corresponding to location for wind resource data

  • year (int) – year for resource data. must be between 2007 and 2014

  • wind_turbine_hub_ht (float) – turbine hub height (m)

  • wtk_source_path (Union[str,Path], optional) – directory where Wind Toolkit data is hosted on HPC. Defaults to “”.

  • filepath (str, optional) – filepath to Wind Toolkit h5 file on HPC. Defaults to “”. - should be formatted as: /path/to/file/name_of_file.h5

Raises:
  • ValueError – if year is not between 2007 and 2014 (inclusive)

  • FileNotFoundError – if wtk_file is not valid filepath

filename#

filepath of resource data file, defaults to None

calculate_heights_to_download()#

Given the system hub height, and the available hub heights from WindToolkit, determine which heights to download to bracket the hub height

download_resource()#

load WTK h5 file using rex and get wind resource data for location specified by (self.lat, self.lon)

format_data()#

Reads data from file and formats it for use in SAM

property data#

Get data as dictionary formatted for SAM