Re: Bug report, subscripting problem

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Aug 19 2013 - 10:50:47 MDT

Hi Dave,

I believe this has been fixed in 6.2.0 already (not yet released), but I have to admit
that the error message is a little more verbose than I care for:

% ncl
 Copyright (C) 1995-2013 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.2.0-19Aug2013_0149
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
ncl 0> x = (/ 2, 3, 4, 5 /)
ncl 1> y = x(:,0)
fatal:["Execute.c":7807]:performASSIGN_VAR_VAR_OP: Number of subscripts on rhs do not match
                        number of dimensions of variable: (2), Subscripts used: (1)

fatal:["Execute.c":8504]:Execute: Error occurred at or near line 1

ncl 2>

The "verbose" part I'm talking about is the "["Execute.c":7807]:performASSIGN_VAR_VAR_OP" part.
We've had some internal discussion about this awhile back. It's useful information for the NCL
developers, but can be confusing for users. I may file a ticket asking that this verbose-ness be an
option setting of some sort.

--Mary

On Aug 16, 2013, at 6:42 PM, Dave Allured - NOAA Affiliate wrote:

> NCL support,
>
> Could you please fix this diagnostic failure on a simple subscripting
> problem? Old NCL 5.2.1 gives the desired error handling:
>
> ncl 0> x = (/ 2, 3, 4, 5 /)
> ncl 1> y = x(:,0)
> fatal:Number of subscripts on rhs do not match number of dimensions of
> variable,(2) Subscripts used, (1) Subscripts expected
> fatal:Execute: Error occurred at or near line 1
>
> NCL 6.1.2 and NCL 6.2.1 give segmentation fault and no message.
> Partially tested on both Linux and Mac OS. Thanks for your
> consideration.
>
> --Dave
> _______________________________________________
> 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 Mon Aug 19 10:50:55 2013

This archive was generated by hypermail 2.1.8 : Wed Aug 21 2013 - 13:54:15 MDT