Re: Where is dim_sum_n()?

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Wed, 24 Jun 2009 16:01:56 -0600

Hi Don,
Are you using NCL v5.1.0? If you are, dim_sum_n, and all the other _n
functions, were added in NCL v5.1.1.
Adam

Don Morton wrote:
> Howdy,
>
> I'm trying to run the first example code segment from
>
> <http://www.ncl.ucar.edu/Document/Functions/Built-in/dim_sum_n.shtml>
>
> My NCL script is as follows (using 5.1.0):
>
> ; Include files
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
>
> begin
> q = random_uniform(-20,100,(/3,5,10/))
> qav = dim_sum_n(q,2) ;==> qav(3,5)
> end
>
>
> But when I run it, I get a message saying that dim_sum_n is undefined.
> However, if I replace dim_sum_n(q,2) with dim_sum(q), it works. I've
> tried loading up the contributed.ncl, but this doesn't help. I don't
> see anything in the documentation for dim_sum_n that specifies a module
> to load. Am I being an idiot, or did dim_sum_n() somehow get left out?
>
> Thanks,
>
> Don
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
--------------------------------------------------------------
Adam Phillips			             asphilli_at_ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
ESSL/CGD/CAS                               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 Wed Jun 24 2009 - 16:01:56 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 25 2009 - 06:30:15 MDT