[ncl-talk] NCl error

Rick Brownrigg brownrig at ucar.edu
Wed Sep 23 07:36:47 MDT 2020


Hi,

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.

Rick

On Wed, Sep 23, 2020 at 3:56 AM jayanti pal via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> Sir,
>
> I have ~60 yrs data. I have divided this into 1950-1980, 1981-2019.
>
> 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.
>
> Error is following
>
>
> *fatal:NclOneDValGetRangeIndex: start coordinate index out of range, can't
> continuefatal:Could not obtain coordinate indexes, unable to perform
> subscript*
>
> *fatal:["Execute.c":8637]:Execute: Error occurred at or near line 261 in
> file sstdiff.ncl*
>
> *I* have attached the script below.
>
> *Kindly help*
>
> *Regards*
>
>
> *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/20200923/22a9c10c/attachment.html>


More information about the ncl-talk mailing list