Re: Could you add one more Build-in funtion

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 18 2011 - 10:41:37 MDT

Hi Guangshan,
With regards to your query, I think you want to use the getvardims function:
http://www.ncl.ucar.edu/Document/Functions/Built-in/getvardims.shtml

Specifically, take a look at example #3 at the bottom of the page.
Hope that helps,
Adam

On 04/15/2011 04:53 PM, Guangshan Chen wrote:
> Dear NCL developers:
>
> Could you add "equiv_sample_size_n" function to the Build-in function?
>
> I found dim_avg, dim_variance have the corresponding ones.
>
> Coming with this request, I have one question.
> What I want to do is reorder the dimension of an array. Let's say I have one array var1(x,y), I want to get var2(y,x) when the dimension
> name is unknown. Is there any easy way to do?
>
> Thanks.
>
> Guangshan
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
__________________________________________________
Adam Phillips 
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Apr 19 02:41:44 2011

This archive was generated by hypermail 2.1.8 : Tue Apr 19 2011 - 18:32:02 MDT