[ncl-talk] Scatter plot

Mary Haley haley at ucar.edu
Fri Nov 7 08:05:58 MST 2014


Kunal,

The error message is telling you exactly what the problem is: you are
trying to subscript an array as if it were a 3D array, when it is really a
2D array:

fatal:Number of subscripts do not match number of dimensions of
variable,(3) Subscripts used, (2) Subscripts expected
fatal:["Execute.c":8567]:Execute: Error occurred at or near line 63 in file
scatter.ncl

You are subscripting "ccr" with (:,:,lag), but it is only 2D, so you need
(:,lag)

You said you are trying to create a scatter graph, but you are calling
gsn_csm_contour_map, which is trying to put contours over a map. This won't
work because this is not lat/lon data.

Do you mean to call gsn_csm_xy for a scatter plot? If so, see example
xy_4.ncl at:

http://www.ncl.ucar.edu/Applications/xy.shtml#ex4

or the scatter plot page:

http://www.ncl.ucar.edu/Applications/scatter.shtml

--Mary


On Fri, Nov 7, 2014 at 3:20 AM, Kunal Bali <kunal.bali9 at gmail.com> wrote:

> Dear NCL users
>
> I have been trying to plor scatter graph but getting an error
>
> fatal:Number of subscripts do not match number of dimensions of
> variable,(3) Subscripts used, (2) Subscripts expected
> fatal:["Execute.c":8567]:Execute: Error occurred at or near line 63 in
> file scatter.ncl
>
> please see the attached script
>
> Thank You
>
>
> Kunal Bali
> Research Scholar
> Radio & Atmospheric Science Division
> CSIR - National Physical Laboratory
> New Delhi - 110012
>
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141107/68ae64be/attachment.html 


More information about the ncl-talk mailing list