<div dir="ltr"><div>Hi,</div><div><br></div><div>It looks to me like you are mixing indexing schemes: lines 251-254 appear to be computing the integer indices of the date ranges you want. But then lines 259-262 treat those integers as coordinate values/ranges ( ie., via the "{...}" notation). Without seeing the data, it's impossible for me to suggest the proper fix. It might be as simple as dropping the {} braces. Otherwise, perhaps do a printVarSummary() on the variables Data and SST, make sure you understand their dimensionality and relationship.</div><div><br></div><div>Rick<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 23, 2020 at 3:56 AM jayanti pal via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.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><div style="font-family:courier new,courier,monaco,monospace,sans-serif;font-size:13px"><div><div dir="ltr">Sir,</div><div dir="ltr"><br></div><div dir="ltr">I have ~60 yrs data. I have divided this into 1950-1980, 1981-2019.</div><div dir="ltr"><br></div><div dir="ltr">I want to calculate the difference of mean of this two period. I have taken and modify the script as per my requirement but it gives an error which i can not resolve.</div><div dir="ltr"><br></div><div dir="ltr">Error is following</div><div dir="ltr"><div><b>fatal:NclOneDValGetRangeIndex: start coordinate index out of range, can't continue<br>fatal:Could not obtain coordinate indexes, unable to perform subscript<br></b><div><b>fatal:["Execute.c":8637]:Execute: Error occurred at or near line 261 in file sstdiff.ncl<br></b></div><div><br></div><div dir="ltr"><div><b>I</b> have attached the script below.</div><div><b><br></b></div><div dir="ltr"><b>Kindly help</b></div><div dir="ltr"><b><br></b></div><div dir="ltr"><b>Regards</b></div><div dir="ltr"><b><br></b></div><div dir="ltr"><b>Jayanti pal<br></b></div></div><b><br></b></div><div><br></div></div></div></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>