<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Your script has:</div><div><br></div><div>ncl 13>   lat2d = f->Latitude<br>ncl 14>  <br>ncl 15>   minlat = -87 ; or some val<br>ncl 16>   maxlat = 76 ; or some val<br>ncl 17>   minlev = 0<br>ncl 18>   maxlev = 100 ;  <br>ncl 19>   ii = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml"><b>ind</b></a>(lat2d.ge.minlat.and.lat2d.le.maxlat.and.ii = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml"><b>ind</b></a>(lat2d.ge.minlat.and.lat2d.le.maxlat</div><div><br></div><div>fatal:And: Number of dimensions do not match, can't continue</div><div><br></div><div> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml"><b>ind</b></a> only works on <b>*one-dimensional arrays*</b>. I assume lat2d is two-dimensions.  <br></div><div><br></div><div>You would have to use <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ndtooned.shtml"><b>ndtooned</b></a> and, subsequently <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ind_resolve.shtml"><b>ind_resolve</b></a>  <br></div><div><br></div><div>Further, line 19 would have to be broken into multiple parts.<br></div><div><br></div><div>lat1d = <b>ndtooned</b>(lat2d)<br></div><div>ii1d   = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml"><b>ind</b></a>(lat1d.ge.minlat .and. lat1d.le.maxlat)</div><div>ii       = <b>ind_resolve</b>(ii1d, lat2d)</div><div>printVarSummary(ii)</div><div><br></div><div>Then from this sunset, find the level information.<br></div><div><br></div><div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml"> </a><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 25, 2018 at 5:43 AM Elham Ghasemifar <<a href="mailto:elham.ghasemifar@modares.ac.ir">elham.ghasemifar@modares.ac.ir</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_5246462558857642598divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Dear colleges</p>
<p>hello</p>
<p>i want to use MIRS data for getting cross section, the data has 3 dimensions but 2 dimensions of them are not latitude and longitude , they are scanline and field of view, i introduce latitude separately in the script, how i can plot vertical section of
 the data against latitude ,</p>
<p>i attached the script here , <br>
</p>
<p>i want to plot vertical section of water vapor against latitude,</p>
<p>best regards<br>
</p>
</div>
</div>

_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>