Re: Drawing vector plot with asciii data

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Nov 18 2009 - 13:56:52 MST

If meteorological wind barbs are sufficient then use

http://www.ncl.ucar.edu/Document/Functions/Built-in/wmbarb.shtml

Actually, I like this better because both the direction and magnitude
are easy to see.

You may wish to set the following

    wmsetp ("wdf", 1) ; winds are meteorological wind direction
Then loop over each vector pair

Good luck

Mary Haley wrote:
> Hi,
>
> As Debasish states, you need 2D data to generate vectors. If you have
> 1D lat, lon, and u/v arrays, then check out the regridding routine,
> triple2grid. This puts your data on a 2D grid. No interpolation is
> used; it just figures out the closest grid locations:
>
> http://www.ncl.ucar.edu/Document/Functions/Built-in/triple2grid.shtml
>
> --Mary
>
>
> On Nov 18, 2009, at 5:57 AM, debasish@gi.alaska.edu wrote:
>
>> Hello,
>> To draw vector map using gsn_csm_vector_map, u and v must be two
>> dimensional
>> http://www.ncl.ucar.edu/Document/Graphics/Interfaces/
>> gsn_csm_vector_map.shtml
>> In your case u and v is one dimensional.
>>
>> Thanks
>>
>> Debasish
>>
>> Quoting sinan <ssahin@corlu.edu.tr>:
>>
>>> Dear Sir, I am new in NCL and I want to plot the dominant wind
>>> components
>>> (u,v) in a map with ascii data for my country. Note that ascii
>>> data is not a
>>> time serie. It only includes the longitute, latitute and u,v wind
>>> components. I attached the NCL script and the example data. I get
>>> the error
>>> message below.
>>>
>>>
>>>
>>> fatal: Number of dimensions in parameter (1) of
>>> (gsn_csm_vector_map) is
>>> (1), (2) dimensions were expected.
>>>
>>>
>>>
>>> I will be very pleased If you help me. Thank you
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Nov 18 13:57:26 2009

This archive was generated by hypermail 2.1.8 : Mon Nov 23 2009 - 12:24:02 MST