<div dir="ltr">Hi all,<div>   I have a 2D variable (nlev*ntim) with values ranges approx from 0 to 20. I want to make a scatter plot with xaxis labeling ntim and yaxis with nlev, and the values am grouping in 10 sets (0-2,2-4,4-6,6-8,8-10,10-12...etc) and trying to put it in different colors. While doing so am getting problem related to array subscription. The way am making the subsets of the values may be wrong.</div><div><br></div><div>My script is attached herewith.</div><div>it is giving error </div><div><br></div><div>fatal:Number of dimensions in parameter (0) of (ind) is (2), (1) dimensions were expected</div><div>fatal:[&quot;Execute.c&quot;:7743]:Execute: Error occurred at or near line 56 in file </div><div><br></div><div>At line 56</div><div>  ii = ind(levels(i).le.data1.and.data1.lt.levels(i+1))<br></div><div>as the data1 is 2D I have to write it some other way for making the subset.</div><div>I have tried to follow the examples</div><div><a href="http://www.ncl.ucar.edu/Applications/Scripts/scatter_6.ncl" target="_blank">http://www.ncl.ucar.edu/Applications/Scripts/scatter_6.ncl</a><br></div><div><a href="http://www.ncl.ucar.edu/Applications/Scripts/scatter_8.ncl" target="_blank">http://www.ncl.ucar.edu/Applications/Scripts/scatter_8.ncl</a><br></div><div>but getting similar issue.</div><div>I know where am making mistake,but don&#39;t know how to solve it. If anyone could help me out this issue will be appreciated.<br></div><div><br></div><div>Thanks,</div><div>Ipsita</div><div><br></div><div><br></div></div>