[ncl-talk] lonPivot
    Alan Brammer 
    abrammer at albany.edu
       
    Wed Sep  2 09:42:49 MDT 2015
    
    
  
When you get these errors with specific line numbers and the file it
occurred in, you could go and look at that line and see whats going on.
This is line 6574 that I see.
    indP = ind(xlon.eq.xlon({pivotLon}))  ; must be exact
What value of pivotlon are you passing to the function ?
Are your longitudes monotonic?
print( isMonotonic(chi&lon) )
https://www.ncl.ucar.edu/Document/Functions/Contributed/isMonotonic.shtml
On Wed, Sep 2, 2015 at 11:03 AM, clotilde dubois <
clotilde.dubois at mercator-ocean.fr> wrote:
>
>
>
> Dear ncl-users,
>
>
> I am trying to use the function lonFlip, but i keep having the following
> message (see below). Whereas I have no problem to use the lonFlip
> function. Do you have any idea why it is not working?
>
> Best regards,
>
> Clotilde Dubois
>
>
>
>  Copyright (C) 1995-2015 - All Rights Reserved
>  University Corporation for Atmospheric Research
>  NCAR Command Language Version 6.3.0
>  The use of this software is governed by a License Agreement.
>  See http://www.ncl.ucar.edu/ for more details.
>
> Variable: chi
> Type: float
> Total Size: 191520 bytes
>             47880 values
> Number of Dimensions: 2
> Dimensions and sizes:    [time | 133] x [lon | 360]
> Coordinates:
>             lon: [72.5..71.5]
> Number Of Attributes: 1
>   _FillValue :    -9e+33
> fatal:NclOneDValGetClosestIndex: Non-monotonic coordinate value being
> used, can't complete coordinate subscript
> fatal:Could not obtain coordinate indexes, unable to perform subscript
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 6574 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150902/5627144a/attachment.html 
    
    
More information about the ncl-talk
mailing list