<div dir="ltr"><div><b><a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a></b> only</div><div> **not** ==> <a href="mailto:ncl-talk-request@mailman.ucar.edu">ncl-talk-request@mailman.ucar.edu</a></div><div>===</div><div>The following is incorrect<br></div><div> weio = wgt_areaave_Wrap(sst(:, -10:10, 50:70), 1.0, 1.0, 0)</div><div><br></div><div>The use of latitude and longitude values requires special syntax: <b> <span style="color:rgb(0,0,255)">{</span></b>...<b><span style="color:rgb(0,0,255)">}</span></b><br></div><div> weio = wgt_areaave_Wrap(sst(:, <span style="color:rgb(0,0,255)"><b>{</b></span>-10:10<span style="color:rgb(0,0,255)"><b>}</b></span>,<span style="color:rgb(0,0,255)"> <b>{</b></span>50:70<span style="color:rgb(0,0,255)"><b>}</b></span>), 1.0, 1.0, 0)</div><div>===</div><div><br></div><div>It is your responsibility to read the <a href="http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/"><b>NCL User Guide</b></a> to learn about NCL's coordinate subscripting.</div><div>See section: <b><font size="2"><span style="font-family:sans-serif">3.5.3</span><span style="font-family:sans-serif" class="gmail-"><span class="gmail-highlight gmail-selected"> Coordinate Sub</span>script</span><span style="font-family:sans-serif">s</span></font></b></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 20, 2020 at 11:39 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">Hello,</div><div dir="ltr"><br></div><div dir="ltr">I would like to calculate area average of SST anomaly over western Indian ocean (50E-70E; -10 to 10). but while doing that I got error in reading sst data. I am attaching the script.</div><div dir="ltr"><br></div><div dir="ltr">Error is following</div><div dir="ltr"><div><b>fatal:Subscript out of range, error in subscript #1<br>fatal:An error occurred reading sst<br>fatal:["Execute.c":8637]:Execute: Error occurred at or near line 301 in file sst_eof_jjas.ncl<br></b><br></div><div><br></div><div dir="ltr">Kindly let me know where It is wrong.</div><div dir="ltr"><br></div><div dir="ltr">Thanking you<br></div></div><div dir="ltr"><br></div><div><br></div><div><span style="font-weight:bold;font-size:medium;font-family:"Courier New",courier,monaco,monospace,sans-serif">Dr. Jayanti Pal</span><span style="font-size:medium;font-family:"Courier New",courier,monaco,monospace,sans-serif"></span></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>