Re: Trajectory With color Gradient

From: Jonathan Vigh <vigh_at_nyahnyahspammersnyahnyah>
Date: Tue, 15 Apr 2008 16:53:20 +0000

Hi Santheesan,
   Take a look at the code for example 2 on the trajectory examples page
(traj_2.ncl). The trick is to draw the trajectory one sement at a time
while using the GetFillColor function to assign the appropriate color
based on your scalar value.

http://www.ncl.ucar.edu/Applications/traj.shtml

Regards,
Jonathan

Satheesan wrote:

> Dear NCL users,
>
> I am trying to plot a trajectory over the south pole, where the data
> is in the format
> lon, lat, parameter (untraj.dat)
> I have to plot this trajectory with the parameter in different colors
> as its value changes (like a contour along the trajectory).
> I am able to draw the trajectory, but not able to do it with different
> colors. How do I make it with different colors (i.e I have to change
> the Red colored line into a line with different colors as the
> parameter varies and a colorbar). I have attached the files.
> Can you help me?
>
> Thanks & Regards
>
> Satheesan
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>ncl-talk mailing list
>ncl-talk_at_ucar.edu
>http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Apr 15 2008 - 10:53:20 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 15 2008 - 19:45:53 MDT