<div dir="ltr"><div>HI,</div><div><br></div><div>I'm not the least bit expert on esccr(), but the docs say the rightmost dimension is usually time. In your case, you have 3D variables of 13879x1x1; i.e., a time series at a point. If I do something like:</div><div><br></div><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:"Droid Sans Mono","monospace",monospace,"Droid Sans Fallback";font-weight:normal;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(0,0,0)"> pc1 = in1->precip(:,</span><span style="color:rgb(9,136,90)">0</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(9,136,90)">0</span><span style="color:rgb(0,0,0)">)</span></div><div><span style="color:rgb(0,0,0)"> pc2 = in2->precip(:,</span><span style="color:rgb(9,136,90)">0</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(9,136,90)">0</span><span style="color:rgb(0,0,0)">)</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="font-family:arial,sans-serif"><font size="2"><span style="color:rgb(0,0,0)">then I don't get the error. However, note that the line that begins "res@tiMainString = ..." contains a reference to an undefined variable "ts". If I comment out that line, the script runs to completion.</span></font></span></div><div><span style="font-family:arial,sans-serif"><font size="2"><span style="color:rgb(0,0,0)"><br></span></font></span></div><div><span style="color:rgb(0,0,0)"><span style="font-family:arial,sans-serif"><font size="2">Rick<br></font></span></span></div></div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:"Droid Sans Mono","monospace",monospace,"Droid Sans Fallback";font-weight:normal;font-size:14px;line-height:19px;white-space:pre"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 12, 2020 at 6:10 PM Edwin Marco via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Dear ncl users,</div><div><br></div><div>I am working on ncl script to calculate lead lad corrections but I am getting this kind of error.</div><div><br></div><div><span style="color:rgb(255,255,255)">l</span>fatal:esccr: npts must be >= 2<br></div> fatal:["Execute.c":8637]:Execute: Error occurred at or near line 52 in file core2.ncl<div><br></div><div>Please help me to resolve this error. </div><div><br></div><div>Together I attach the script and the data sets I am using.</div><div><br></div><div>Thanks</div><div>Edwin</div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>