<div dir="ltr"><div>The latitude range from the variable summary looks strange:</div><div><span class="gmail-im"><div>Coordinates:</div><div> XDim_MOP03: [-179.5..179.5]</div></span><div> <span style="color:rgb(255,0,0)"><b>YDim_MOP03: [ 0.5..359.5]</b></span></div></div><div><div><span style="color:rgb(255,0,0)"><span style="color:rgb(0,0,0)">Do you know why latitudes are expanding from 0.5 to 359.5?</span><br></span></div><div><span style="color:rgb(255,0,0)"><b></b></span></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 2, 2021 at 4:39 PM Najib Yusuf via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">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></div>
<div dir="ltr">Dear Dennis,</div><div dir="ltr"><br></div><div dir="ltr">Thank you for this quick response. I have effected the suggestion, the printVarSummary is:</div><div dir="ltr"><br></div><div dir="ltr"><div><div>Variable: co_model</div><div>Type: float</div><div>Total Size: 148635648 bytes</div><div> 37158912 values</div><div>Number of Dimensions: 4</div><div>Dimensions and sizes: [time | 12] x [lev | 56] x [lat | 192] x [lon | 288]</div><div>Coordinates:</div><div> time: [ 31.. 365]</div><div> lev: [1.867879997007549..992.5000106104562]</div><div> lat: [ -90.. 90]</div><div> lon: [ 0..358.75]</div><div>Number Of Attributes: 4</div><div> mdims : 1</div><div> units : mol/mol</div><div> long_name : CO concentration</div><div> cell_methods : time: mean</div><div><br></div><div>Variable: cocol_retr_flip</div><div>Type: float</div><div>Total Size: 3110400 bytes</div><div> 777600 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [ncl_join | 12] x [XDim_MOP03 | 360] x [YDim_MOP03 | 180]</div><div>Coordinates:</div><div> XDim_MOP03: [-179.5..179.5]</div><div> YDim_MOP03: [ 0.5..359.5]</div><div>Number Of Attributes: 5</div><div> long_name : Retrieved CO Total Column Day</div><div> units : mol/cm^2</div><div> _FillValue : -9999</div><div> projection : Geographic</div><div> lonFlip : longitude coordinate variable has been reordered via lonFlip</div><div><br></div><div dir="ltr">However, when I run I get similar error:</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>fatal:["Execute.c":8637]:Execute: Error occurred at or near line 172 in file Annualaverage_MOPITTCO_nyg_modified.ncl</div><div><br></div><div dir="ltr">I know you are busy, kindly spare some time to assist me look at the script as you use to.</div><div dir="ltr"><br></div><div dir="ltr">Thank you sir.</div><div dir="ltr"><br></div><div dir="ltr">Najib</div><div><br></div></div><br></div><div><br></div>
</div><div id="gmail-m_8483689665148356502yahoo_quoted_2979222831">
<div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
<div>
On Tuesday, June 1, 2021, 09:29:32 PM GMT+1, Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="gmail-m_8483689665148356502yiv5656186867"><div><div dir="ltr"><div>I don't have the time to look at your script right now.</div><div><br clear="none"></div><div>However, The lat/lon ranges are different.</div><div><br clear="none"></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 rel="nofollow noopener noreferrer" shape="rect" href="http://www.ncl.ucar.edu/Document/Functions/Contributed/lonFlip.shtml" target="_blank"><b>lonFlip</b></a> to accomplish this.</div><div><br clear="none"></div><div>Variable: co_model</div>Dimensions and sizes: [time | 12] x [lev | 56] x [lat | 192] x [lon | 288]<br clear="none">Coordinates:<br clear="none"> time: [ 31.. 365]<br clear="none"> lev: [1.867879997007549..992.5000106104562]<br clear="none"><b> lat: [ -90.. 90]<br clear="none"> lon: [ 0..358.75</b>]<br clear="none"><br clear="none">Variable: cocol_retr<br clear="none">Dimensions and sizes: [ncl_join | 12] x [XDim_MOP03 | 360] x [YDim_MOP03 | 180]<br clear="none">Coordinates:<br clear="none"> <b> XDim_MOP03: [-179.5..179.5]<br clear="none"> YDim_MOP03: [-89.5..89.5]</b><br clear="none">~ <br clear="none"></div><br clear="none"><div><div id="gmail-m_8483689665148356502yiv5656186867yqt28029"><div dir="ltr">On Tue, Jun 1, 2021 at 5:17 AM Najib Yusuf via ncl-talk <<a rel="nofollow noopener noreferrer" shape="rect" href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br clear="none"></div><blockquote 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 clear="none"></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 clear="none"></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 clear="none"></span></span></div><div dir="ltr"><span><span>Thank you for your support.</span></span></div></div></div>_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div></div>
</div></div></div>
</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>