uvplot function

plot centre as vectors

plot centre as vectors

display the radial and angular component of the spectrum's centre as arrows.

uvplot(uv, z = NULL, x = NULL, y = NULL, col = "green", zcol = grDevices::gray.colors(32, 0, 1), n = 42, f = 1, length = 0.05, ...)

Arguments

  • uv: an array of dimension nx x ny x 2, containing the u- and v-component, result of cen2uv
  • z: image to show in the background, defaults to sqrt(x^2+y^2)
  • x, y: optional x- and y-coordinates for the plot, must match the dimensions of z
  • col: color of the arrows
  • zcol: color scale for the image
  • n: number of arrows in one direction
  • f: factor by which to enlarge the arrows
  • length: length of the arrowhead in inches
  • ...: further arguments passed to image

Details

The pivot of the arrows is at the location to which the u- and v-component belong. No arrowhead is displayed since the egdges detcted by the cdtwt have an orientation but no sign. The default size of the arrows is such that a 'velocity' of 1 corresponds to 5% of the shorter image side.

Examples

uv <- cen2uv( dt2cen( fld2dt( blossom ) ) ) uvplot( uv, z=blossom )

See Also

cen2uv

  • Maintainer: Sebastian Buschow
  • License: MIT + file LICENSE
  • Last published: 2023-10-04

Useful links