comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: vectors on maps
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: vectors on maps [message #13594 is a reply to message #13588] Wed, 25 November 1998 00:00 Go to previous message
wmc is currently offline  wmc
Messages: 117
Registered: February 1995
Senior Member
Varavut Limpasuvan <var@atmos.washington.edu> writes:
> Is it possible to overlay vectors (say wind vectors) on a stereographic
> (or any other type) projection map? I dont think "velovect" works for
> this situation. Help.

Drawing arrows (vectors) is always a pain... for polar stereos, the transformation
is fairly easy though: if (fx,fy) are your vectors in (lo,la) directions, then
fx1= fx*cosd(lo)+fy*sind(la)
fy1=-fx*sind(lo)+fy*cosd(lo)
are the rotated vectors. Remember you need to use convert_coord to draw everything
in device space or you'll regret it.

For a general map projection, the transformation is harder. I would guess that you
would have to define a scale length for your vectors, definte their ends in lat-lon
coords, and use convert_coord to "rotate" them.

- William

---
William M Connolley | wmc@bas.ac.uk | http://www.nbs.ac.uk/public/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Structure in argument #2 -> With IDL ActiveX control
Next Topic: IDL 5.2 available for FTP

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 05:31:48 PDT 2025

Total time taken to generate the page: 0.01096 seconds