Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

vector w_from_omega(omega: numbervector,  t: numbervector,  p: numbervector)

fieldset w_from_omega(omega: fieldset, t: fieldset)

...

  • Rd is the specific gas constant for dry air (287.058 J/(kg K)).
  • g is the gravitational acceleration (9.81 m/s2)

This functions was introduced in version 5.10.0.


Anchor
xy_from_polar
xy_from_polar

list of numbers xy_from_polar(magnitude: number,  dir: number)

list of vectors xy_from_polar(magnitude: vector,  dir: vector)

fieldset xy_from_polar(sp: fieldset, dir: fieldset)

Converts vector data from meteorological polar representation to xy representation. In polar representation the data is specified by two components:

  • magnitude: represents the speed/magnitude
  • dir: represents the direction of the vector in degrees. Angles measured from South in clockwise direction.

In the target xy representation the x axis points East while the y axis points North.

The type of the result depends on the type of the input data

  • if the input is number the result is a list of two numbers
  • if the input is vector the result is a list of two vectors, the first vector contains the x components while the second vector the y components
  • if the input is fieldset the result is a fieldset where an x component field is immediately followed by the corresponding y component field.

This function was introduced in version 5.10.0.

...