Re: Get u and v components given wind speed and wind direction

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue, 03 Mar 2009 17:52:06 -0700

No function but pretty straightforward:
              rad = 4.0*atan(1.0)/180.
              u = -spd*sin(rad*dir)
              v = -spd*cos(rad*dir)

Good luck

Yongxin Zhang wrote:
> I am just wondering if there is a function in NCL that can output u
> and v components given the wind speed and wind direction.
>
> Thanks,
> Yongxin
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

-- 
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate & Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 03 2009 - 17:52:06 MST

This archive was generated by hypermail 2.2.0 : Mon Mar 09 2009 - 21:47:10 MDT