Re: What is wrong with the array_append_record

From: Hobbs, Will R (3244-Affiliate) <William.R.Hobbs_at_nyahnyahspammersnyahnyah>
Date: Sun Sep 09 2012 - 12:07:27 MDT

Shawn

Array 'a' has one dimension (i.e. has rank 1), and array 'b' has 2 dimensions (i.e. rank 2). The arrays must have the same rank for the array_append_record() function

http://www.ncl.ucar.edu/Document/Functions/Contributed/array_append_record.shtml

Will

**********************************************************
Will Hobbs, Ph.D. William.R.Hobbs@jpl.nasa.gov
Jet Propulsion Laboratory
4800 Oak Grove Dr. office: 300-324a
M/S 300-323 phone: (818) 354-0466
Pasadena, CA 91109 fax: (818) 354-0966
**********************************************************

From: "Wen.J.Qu" <wen.j.qu@gmail.com<mailto:wen.j.qu@gmail.com>>
Organization: OUC
Reply-To: "Wen.J.Qu@gmail.com<mailto:Wen.J.Qu@gmail.com>" <Wen.J.Qu@gmail.com<mailto:Wen.J.Qu@gmail.com>>
Date: Sunday, September 9, 2012 8:18 AM
To: ncl-talk <ncl-talk@ucar.edu<mailto:ncl-talk@ucar.edu>>
Subject: What is wrong with the array_append_record

Hi, all,

What is wrong about my run of the "array_append_record" below? Is it result from the old version of NCL (Version 6.0.0
)? Thanks a lot.

Shawn

##################################################################################

$ ncl
 Copyright (C) 1995-2011 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.0.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
ncl 0> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
ncl 1> a = (/1,2,3/)
ncl 2> b = (/(/2,2,3/),(/3,2,3/)/)
ncl 3> c = array_append_record(a,b,0)
fatal:Dimension sizes on right hand side of assignment do not match dimension sizes of left hand side
fatal:Execute: Error occurred at or near line 9765 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl

fatal:Execute: Error occurred at or near line 3
###################################################################################

________________________________
Wen.J.Qu
2012-09-09

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Sep 9 12:07:41 2012

This archive was generated by hypermail 2.1.8 : Tue Sep 11 2012 - 15:30:42 MDT