[ncl-talk] Coordinate syronising error

Dennis Shea shea at ucar.edu
Tue Jun 1 14:28:47 MDT 2021


I don't have the time to look at your script right now.

However, The lat/lon ranges are different.

In particular the longitudes. Likely, you will have to make the longitudes
both be (nominally) 0-to-360 or -180-to180
You can use *lonFlip*
<http://www.ncl.ucar.edu/Document/Functions/Contributed/lonFlip.shtml>  to
accomplish this.

Variable: co_model
Dimensions and sizes:   [time | 12] x [lev | 56] x [lat | 192] x [lon | 288]
Coordinates:
            time: [  31.. 365]
            lev: [1.867879997007549..992.5000106104562]

*            lat: [ -90..  90]            lon: [   0..358.75*]

Variable: cocol_retr
Dimensions and sizes:   [ncl_join | 12] x [XDim_MOP03 | 360] x [YDim_MOP03
| 180]
Coordinates:

*          XDim_MOP03: [-179.5..179.5]            YDim_MOP03: [-89.5..89.5]*
~

On Tue, Jun 1, 2021 at 5:17 AM Najib Yusuf via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> Dear NCL users,
>
> I am comparing CO from MOPITT satellite retrieval and model CAM output
> with averaging kernel been considered. I am having trouble synchronising
> the coordinates amd the error is:
> fatal:NclOneDValGetClosestIndex: finish coordinate index out of range,
> can't continue
> fatal:Could not obtain coordinate indexes, unable to perform subscript
> fatal:["Execute.c":8637]:Execute: Error occurred at or near line 165 in
> file Annualaverage_MOPITTCO_nyg_modified.ncl ( under:  Collect equivalent
> profile)
>
> I look around NCL examples but couldn't figure out how to resolve the
> issue and get the plot.
> Kindly assist to figure out the solution to this. The script Annualaverage_MOPITTCO_nyg_modified.ncl
> and the run CO_MOPITT_MODEL_Comparison_run are attached.
>
> Thank you for your support.
> _______________________________________________
> 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/20210601/c4e6125a/attachment.html>


More information about the ncl-talk mailing list