sup3r.preprocessing.feature_handling.VWindPowerLaw

class VWindPowerLaw[source]

Bases: DerivedFeature

V wind component feature class with needed inputs method and compute method. Uses power law extrapolation to get values above surface

https://csl.noaa.gov/projects/lamar/windshearformula.html https://www.tandfonline.com/doi/epdf/10.1080/00022470.1977.10470503

Methods

compute(data, height)

Method to compute V wind component from data

inputs(feature)

Required inputs for computing V wind component

Attributes

ALPHA

NEAR_SFC_HEIGHT

classmethod inputs(feature)[source]

Required inputs for computing V wind component

Parameters:

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

Returns:

list – List of required features for computing V

classmethod compute(data, height)[source]

Method to compute V wind component from data

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