<div dir="ltr">Thank you.<div><br></div><div>I figured out the error, but I wasn't sure how to understand what part of the message referred to which part of the equivalence -- from the message itself.</div><div><br></div><div>Barry</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 18, 2019 at 6:33 PM Dennis Shea <<a href="mailto:shea@ucar.edu">shea@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 dir="ltr"><br><div>ncl 0> x = <b>random_normal</b>(0,5, (/2,3,4,5/))   <br>ncl 1> printVarSummary(x)                          ; <== ; 4D ==> [2] x [3] x [4] x [5]</div><div>ncl 2> printVarSummary(x(:,<b>1</b>,:,:))                ; <== ; 3D ==> [2] x [4] x [5]</div><div><br></div><div><div>NCL treats a dimension of size 1 as a <b>degenerate dimension.</b></div><div>NCL silently acts like Matlab's  <a href="https://www.mathworks.com/help/matlab/ref/squeeze.html;jsessionid=8cbd8b52c78c9d7954f78b44f7d6" target="_blank"><b>squeeze</b></a> function.</div><div><br></div><div>HTH<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 17, 2019 at 9:31 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</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 dir="ltr">Hello:<div><br></div><div>I am wondering how to read this error message.</div><div><br></div><div>I actually used three subscripts (1,:,:) when there are four (:,1,:,:), but I am wondering how to glean this information from the error message. </div><div><br></div><div>





<p class="gmail-m_4167574387878424362gmail-m_3107782387156378762gmail-m_-2510512685498147318gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:19px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-m_4167574387878424362gmail-m_3107782387156378762gmail-m_-2510512685498147318gmail-s1" style="font-variant-ligatures:no-common-ligatures">fatal:["Execute.c":7863]:Number of subscripts on right-hand-side do not match</span></p>
<p class="gmail-m_4167574387878424362gmail-m_3107782387156378762gmail-m_-2510512685498147318gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:19px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-m_4167574387878424362gmail-m_3107782387156378762gmail-m_-2510512685498147318gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_4167574387878424362gmail-m_3107782387156378762gmail-m_-2510512685498147318gmail-Apple-tab-span" style="white-space:pre-wrap">     </span><span class="gmail-m_4167574387878424362gmail-m_3107782387156378762gmail-m_-2510512685498147318gmail-Apple-tab-span" style="white-space:pre-wrap">       </span><span class="gmail-m_4167574387878424362gmail-m_3107782387156378762gmail-m_-2510512685498147318gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>number of dimensions of variable: (3), Subscripts used: (4)</span></p><div><br></div>-- <br><div dir="ltr" class="gmail-m_4167574387878424362gmail-m_3107782387156378762gmail-m_-2510512685498147318gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div></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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div>