[ncl-talk] how to define a alterable dimension for the variables in a self-defined functions?

xianglin72 xianglin72 at icloud.com
Sat Oct 17 10:10:22 MDT 2015


Hi, all


   In many ncl functions, the variables can be in any dimension, but how to define a variables of which the dimension can be alterable when I define a personal function ?  For example, when I write the following :


   undef("partialcorr")
    function partialcorr(x[*][*][*],y[*],z[*]) 


the x input must be 3d, how could the x can be input as a 1d array without writing another function ?


Besides, Anyone can show me some tutorial for writing personal function and procedure?


Thanks!




Lin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151018/b464ac30/attachment.html 


More information about the ncl-talk mailing list