# Re: Velocity potential

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Oct 23 2009 - 06:06:20 MDT

Use NCL's ::-1 syntax

uwnd = short2flt( in1->uwnd(:,:,::-1,:) )
vwnd = short2flt( in2->vwnd(:,:,::-1,:) )
sfvp = uv2sfvpF(uwnd,vwnd)
vp = sfvp(1,:,:,:)
vp@long_name = "velocity potential"
vp@umits" = "m2/s2"

Sabeerali(sebi) wrote:
> Dear all,
>
> I want to find the velocity potential from ncep_ncar 200hpa monthly
> uwnd and vwnd...I am using the following script. But when I looked in to
> the document for uv2sfvpF I found one condition that *input values must
> be in ascending latitude order..*When I print latitude I found that it
> starts from 90 to -90...How I can make my input values in ascending
> latitude order?
> Any help would be appreciated
> Thanking you*
> *
> begin
> ;**************************************************************
> lat=in1->lat
> u=in1->uwnd
> v=in2->vwnd
> uwd=short2flt(u)
> vwd=short2flt(v)
> uwnd=uwd(:,0,:,:)
> vwnd=vwd(:,0,:,:)
> sfvp=uv2sfvpF(uwnd,vwnd)
> vp=sfvp(1,:,:,:)
> vp@missing_value=32766
> vp@_FillValue=vp@missing_value
> vp!0="time"
> vp!1="lat"
> vp!2="lon"
> vp&time=uwnd&time
> vp&lat=uwnd&lat
> vp&lon=uwnd&lon
> end
>
> --
> **********************************
> Sabeerali C T
> Climate and Global Modeling Division
> Indian Institute of Tropical Meteorology
> Pashan, Pune, 411 008
> ****************************************
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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 Fri Oct 23 06:06:15 2009

This archive was generated by hypermail 2.1.8 : Mon Oct 26 2009 - 15:01:33 MDT