<div dir="ltr"><div>I don't have the time to look at your script right now.</div><div><br></div><div>However, The lat/lon ranges are different.</div><div><br></div><div>In particular the longitudes. Likely, you will have to make the longitudes both be (nominally) 0-to-360 or -180-to180</div><div>You can use <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/lonFlip.shtml"><b>lonFlip</b></a> to accomplish this.</div><div><br></div><div>Variable: co_model</div>Dimensions and sizes: [time | 12] x [lev | 56] x [lat | 192] x [lon | 288]<br>Coordinates:<br> time: [ 31.. 365]<br> lev: [1.867879997007549..992.5000106104562]<br><b> lat: [ -90.. 90]<br> lon: [ 0..358.75</b>]<br><br>Variable: cocol_retr<br>Dimensions and sizes: [ncl_join | 12] x [XDim_MOP03 | 360] x [YDim_MOP03 | 180]<br>Coordinates:<br> <b> XDim_MOP03: [-179.5..179.5]<br> YDim_MOP03: [-89.5..89.5]</b><br>~ <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 1, 2021 at 5:17 AM Najib Yusuf via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px"><div dir="ltr">Dear NCL users,</div><div dir="ltr"><br></div><div dir="ltr">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: <div><div>fatal:NclOneDValGetClosestIndex: finish coordinate index out of range, can't continue</div><div>fatal:Could not obtain coordinate indexes, unable to perform subscript</div><div dir="ltr">fatal:["Execute.c":8637]:Execute: Error occurred at or near line 165 in file Annualaverage_MOPITTCO_nyg_modified.ncl ( under: <span> Collect equivalent profile)</span></div><div><br></div></div><div dir="ltr">I look around NCL examples but couldn't figure out how to resolve the issue and get the plot.</div> Kindly assist to figure out the solution to this. The script <span>Annualaverage_MOPITTCO_nyg_modified.ncl and the run <span>CO_MOPITT_MODEL_Comparison_run are attached. </span></span></div><div dir="ltr"><span><span><br></span></span></div><div dir="ltr"><span><span>Thank you for your support.</span></span></div></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>