[ncl-talk] calculation of wind component

Karin Meier-Fleischer meier-fleischer at dkrz.de
Mon Feb 5 03:36:28 MST 2018


Hi Jayanti,

simple answer is yes. If your wind speed variable is speed and the wind 
direction variable is direction:

   rad = 4.0*atan(1.0)/180.
   u   = -speed*sin(rad*direction)
v   = -speed*cos(rad*direction)

Instead of the computation of rad above you can also use the function 
get_d2r: rad = get_d2r("float")

Bye,
Karin

Am 05.02.18 um 10:30 schrieb jayanti pal:
> I have wind direction and wind speed in a file (hdf format and swath 
> data). Will it be possible to calculate U and V component using ncl?
>
>
>
> Dr. Jayanti Pal
> Post-doc Fellow
> Department of Atmospheric Sciences
> Institute of Atmospheric and Environmental Sciences
> University of Calcutta
> Contact: jiban_samudra18 at yahoo.com,jayantibright at gmail.com
> Ph. 8013906997
>
>
> _______________________________________________
> 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/20180205/2c01e304/attachment.html>


More information about the ncl-talk mailing list