<div dir="ltr"><div class="gmail_default" style="font-size:small">Lena,</div><div class="gmail_default" style="font-size:small"><br class="">A friendly tip: if you reply to an email thread, it's helpful to keep all the original emails in the body of the message. This particular email didn't include the original email with the error message, so I had to go back a few emails to find it.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The error is referring to an "inverse_matrix" function, but your script is not calling this function directly, so it's difficult for us to debug your script without knowing what other function is referencing inverse_matrix.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Usually you can debug these things on your own by using "printVarSummary", which will tell you what the dimensionality and size of your data is.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Find the location in your script where you think inverse_matrix is being called by another function, and then insert some "printVarSummary" calls to look at the data before you call the offending function. This will hopefully shed some light on why your data is not the correct dimensionality.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 8, 2015 at 6:43 AM, Lena Frey <span dir="ltr"><<a href="mailto:Frey_L@web.de" target="_blank">Frey_L@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12px"><div>Hi again!</div>
<div> </div>
<div>Thanks to Karin. The problem is, that I don't know why I get this error message.</div>
<div>I have used the ncl script from the ncl website to calculate the POPs for the mean sea level pressure.</div>
<div>I am using NCEP reanalysis data. The mean sea level pressure has the dimensions time, lat, lon.</div>
<div>So, following the ncl script it should be 2D before calculating the inverse matrix.</div>
<div> </div>
<div>You can find attached my ncl script.</div>
<div> </div>
<div>Thanks,</div><span class=""><font color="#888888">
<div> </div>
<div>Lena</div></font></span></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div></div>