IDL vector filed plot

The VELOVECT procedure produces a two-dimensional velocity field plot. A directed arrow is drawn at each point showing the direction and magnitude of the field.

This routine is written in the IDL language. Its source code can be found in the file velovect.pro in the lib subdirectory of the IDL distribution.

Examples


; Create some random data:
U = RANDOMN(S, 20, 20)
V = RANDOMN(S, 20, 20)
; Plot the vector field:
VELOVECT, U, V
; Plot the field, using dots to represent vectors with values 
; greater than 18:
VELOVECT, U, V, MISSING=18, /DOTS
; Plot with a title. Note that the XTITLE keyword is passed
; directly to the PLOT procedure:
VELOVECT, U, V, MISSING=18, /DOTS, XTITLE='Random Vectors'

Syntax


VELOVECT, UV [, XY] [, COLOR=index] [, MISSING=value [, /DOTS]] [, LENGTH=value] [, /OVERPLOT] [Also accepts all PLOT keywords]

Arguments


U

The X component of the two-dimensional field. U must be a two-dimensional array.

V

The Y component of the two dimensional field. must have the same dimensions as U.

X

Optional abscissae values. X must be a vector with a length equal to the first dimension of U and V.

Y

Optional ordinate values. Y must be a vector with a length equal to the second dimension of U and V.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值