Wind Climate Translation#

Translation between windIO wind resource data and windkit climate structures.

Usage Pattern#

All climate types follow the same pattern:

from windkit.io.windio import read_plant, write_plant

# Import: read file, translate with CRS
plant_data = read_plant("resource.yaml")
climate = xxx_from_windio(plant_data, crs="EPSG:32632")

# Export: translate, write file
write_plant(xxx_to_windio(climate), "output.yaml")

Replace xxx with wwc, bwc, or tswc as needed.

Field Mappings#

Weibull (WWC)

  • weibull_a -> A (scale parameter)

  • weibull_k -> k (shape parameter)

  • sector_probability -> wdfreq (direction frequency)

  • wind_direction -> sector

  • x, y, height -> spatial coordinates

Binned (BWC)

  • wind_speed -> wsbin (bin centers to edges)

  • probability -> wsfreq (frequency per sector)

  • sector_probability -> wdfreq

  • wind_direction -> sector

Time Series (TSWC)

  • time -> time (ISO 8601 to datetime)

  • wind_speed -> wind_speed

  • wind_direction -> wind_direction

Multi-Location Data#

windkit automatically handles spatially-varying data, creating stacked_point structures on import and preserving coordinates on export.

API Reference#