[ncl-talk] Wind vector time-series

David Brown dbrown at ucar.edu
Wed May 24 17:00:29 MDT 2017


Hi Tabish,

Although it does not seem to be well-known, it is possible to use wind
speed and direction as inputs to gsn_vector. Just set the resource
vfPolarData  to True. Once you do that the 'u' argument will be interpreted
as magnitude and the 'v' argument as direction.
   -dave

On Wed, May 24, 2017 at 2:46 PM, Tabish Ansari <tabishumaransari at gmail.com>
wrote:

> Hi Adam, Guido
>
> Thanks for pointing me to the relevant example.
>
> I'm still not sure how to supply my wind speed and wind direction to
> gsn_vector() function here - as it expects 2d U and V variables which are
> probably over a map. However, I only want to plot the time-series of wind
> vectors at a given lat-lon point. I have u and v arrays extracted something
> like this- U(:,0,J,I) and V(:,0,J,I) and have calculated the wind speed and
> wind direction arrays based on these two arrays. So I only have 1-d arrays
> with me.
>
> Thanks
>
> Tabish
>
> Tabish U Ansari
> PhD student, Lancaster Environment Center
> Lancaster Univeristy
> Bailrigg, Lancaster,
> LA1 4YW, United Kingdom
>
> On 24 May 2017 at 18:33, Adam Phillips <asphilli at ucar.edu> wrote:
>
>> Hi Tabish,
>> See example #2 here:
>> http://www.ncl.ucar.edu/Applications/unique.shtml#ex2
>> Adam
>>
>> On Tue, May 23, 2017 at 8:05 PM, Tabish Ansari <
>> tabishumaransari at gmail.com> wrote:
>>
>>> Hi
>>>
>>> I wish to plot the time series of wind vectors at a given location - I
>>> have 2 arrays for wind speed (in m/s) and direction (in degrees) and want
>>> to achieve something like this:
>>>
>>>
>>>>>>
>>> Is it possible to do this in NCL?
>>>
>>> Many thanks
>>>
>>> Tabish
>>>
>>> Tabish U Ansari
>>> PhD student, Lancaster Environment Center
>>> Lancaster Univeristy
>>> Bailrigg, Lancaster,
>>> LA1 4YW, United Kingdom
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>
>>
>> --
>> Adam Phillips
>> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
>> www.cgd.ucar.edu/staff/asphilli/   303-497-1726 <(303)%20497-1726>
>>
>> <http://www.cgd.ucar.edu/staff/asphilli>
>>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170524/92d887a9/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: windvectorts.png
Type: image/png
Size: 78028 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170524/92d887a9/attachment.png 


More information about the ncl-talk mailing list