WISDEM / WOMBAT

Windfarm Operations & Maintenance cost-Benefit Analysis Tool
https://wisdem.github.io/WOMBAT/
Apache License 2.0
20 stars 11 forks source link

Support for weather profiles with many columns #65

Closed RHammond2 closed 1 year ago

RHammond2 commented 1 year ago

Weather profiles that have more columns than ["datetime", "windspeed", "wave_height"] will cause an error here: https://github.com/WISDEM/WOMBAT/blob/main/wombat/core/environment.py#L520.

A simple fix such as the following could allow for more robust workflows using WOMBAT:

  1. reordering the columns to be in the expected order when setting up the weather data
  2. when getting the weather forecast in-code, use the following:
    wind, wave, hour, *_ = self.weather.values[start:end].T
RHammond2 commented 1 year ago

Closed with #82