Re: Trajectory With color Gradient

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 16 Apr 2008 11:26:16 -0600 (MDT)

Satheesan,

If you can personally email me your script, I'll take a look.
It sounds like there is a problem with your colormap.

--Mary

On Tue, 15 Apr 2008, Satheesan wrote:

> Hi Jonathan,
>
> Thank you for your suggestion. I made some changes to the traj_2.ncl and
> still I am unable to get the colours. It complains that " Not enough colors
> in colormap for number of contour levels" and plotting a black line. Also it
> is plotting under the map. What could be the problem.
>
> Thanks & Regards,
>
> Satheesan
>
> On Tue, Apr 15, 2008 at 6:53 PM, Jonathan Vigh <vigh_at_atmos.colostate.edu>
> wrote:
>
>> 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 Wed Apr 16 2008 - 11:26:16 MDT

This archive was generated by hypermail 2.2.0 : Sun Apr 20 2008 - 07:42:41 MDT