Bug #767

grdvector with polar coordinates

Added by chuan almost 6 years ago. Updated over 5 years ago.

Status:ClosedStart date:2015-09-20
Priority:NormalDue date:
Assignee:Paul% Done:


Target version:Candidate for next bugfix release
Affected version:4.5.x Platform:Linux



I found that some errors may happen when using grdvector to handle velocity field in polar coordinates.
For example, suppose file 'vel_x' and 'vel_y' respectively contains the x and y component of velocity field, then every thing is right if cartesian coordinates is used (see file 'draw' and the result shows in 'draw.png'). However, the result may be wrong if polar coordinates is adopted, because as you can see from 'draw_polar.png', the 3 arrows in degree 45 should not perpendicular to the theta direction (the script for polar coordinates is in file 'draw_polar').

vel_x (17 Bytes) chuan, 2015-09-20 16:37

vel_y (17 Bytes) chuan, 2015-09-20 16:37

draw (294 Bytes) chuan, 2015-09-20 16:37

draw_polar (310 Bytes) chuan, 2015-09-20 16:38

draw.png (9.36 KB) chuan, 2015-09-20 16:57

draw_polar.png (16.3 KB) chuan, 2015-09-20 17:12


#1 Updated by chuan almost 6 years ago

I missed a file 'draw_polar.png'

#2 Updated by Paul almost 6 years ago

  • Status changed from New to In Progress
  • Assignee set to Paul
  • Target version set to Candidate for next bugfix release

I see the problem and will work on a fix soon.

#3 Updated by Paul almost 6 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Should be fixed in r15161 [5.2 branch]

#4 Updated by Joaquim over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF