[ncl-talk] Error while calculating area average
Dennis Shea
shea at ucar.edu
Sun Sep 20 12:01:29 MDT 2020
*ncl-talk at ucar.edu <ncl-talk at ucar.edu>* only
**not** ==> ncl-talk-request at mailman.ucar.edu
===
The following is incorrect
weio = wgt_areaave_Wrap(sst(:, -10:10, 50:70), 1.0, 1.0, 0)
The use of latitude and longitude values requires special syntax: * {*...*}*
weio = wgt_areaave_Wrap(sst(:, *{*-10:10*}*, *{*50:70*}*), 1.0, 1.0, 0)
===
It is your responsibility to read the *NCL User Guide*
<http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/> to learn about
NCL's coordinate subscripting.
See section: *3.5.3 Coordinate Subscripts*
On Sun, Sep 20, 2020 at 11:39 AM jayanti pal via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:
> Hello,
>
> 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.
>
> Error is following
>
>
>
> *fatal:Subscript out of range, error in subscript #1fatal:An error
> occurred reading sstfatal:["Execute.c":8637]:Execute: Error occurred at or
> near line 301 in file sst_eof_jjas.ncl*
>
> Kindly let me know where It is wrong.
>
> Thanking you
>
>
> Dr. Jayanti Pal
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200920/17e1b9bc/attachment-0001.html>
More information about the ncl-talk
mailing list