[ncl-talk] NCl error

Dennis Shea shea at ucar.edu
Wed Sep 23 08:34:35 MDT 2020


 A few days ago I asked that you read Section 5.5.2 of the User Guide
regarding coordinate subscripts.
The section preceding that discusses 'standard subscripts'. Please read
3.5.1

It is your responsibility to read the documentation

Remove the {...} because these are standard integer subscripts:

slpAve7079 = clmMonLLT ( SST(:,:,ind5001:ind8012) )
  slpStd7079 = stdMonLLT ( SST(:,:,ind5001:ind8012) )
  slpAve9099 = clmMonLLT ( SST(:,:,ind8101:ind1912) )
  slpStd9099 = stdMonLLT ( SST(:,:,ind8101:ind1912) )

On Wed, Sep 23, 2020 at 7:37 AM Rick Brownrigg via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> 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
>
> _______________________________________________
> 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/a60b7cdd/attachment.html>


More information about the ncl-talk mailing list