sup3r.preprocessing.feature_handling.WinddirectionNC

class WinddirectionNC[source]

Bases: DerivedFeature

Winddirection feature from netcdf data

Methods

compute(data, height)

Compute winddirection

inputs(feature)

Required inputs for computing windspeed from netcdf data

classmethod inputs(feature)[source]

Required inputs for computing windspeed from netcdf data

Parameters:

feature (str) – raw feature name. e.g. BVF_MO_100m

Returns:

list – List of required features for computing windspeed

classmethod compute(data, height)[source]

Compute winddirection

Parameters:
  • data (dict) – Dictionary of raw feature arrays to use for derivation

  • height (str | int) – Height at which to compute the derived feature

Returns:

ndarray – Derived feature array