<div dir="ltr"><div>Check if the orginal matrices a and b have entries with _FillValue, which is probably the <br></div><div>default 9.969209968386869e+36 that you see in the result.</div><div><br></div><div>_FillValue elements in your matrices mean the data is undefined, not a number.<br></div><div>Hence, you can't multiply them legitimately, from the Mathematics point of view.</div><div><br></div><div>One workaround, which is not necessarily what you want or even mathematically sound,</div><div>would be to replace the _FillValue entries in a and b by 1.0 (the neutral element for</div><div>multiplication).</div><div>That can be done using the "where" function, before you multiply.</div><div>However, the right way to go about it is to start with matrices with no _FillValue.<br></div><div><br></div><div>I hope this helps,<br></div><div>Gus Corea<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 16, 2019 at 9:12 AM Chen <<a href="mailto:kuroshio@163.com">kuroshio@163.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 style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><div>Dear friends,</div><div> I am using "#" to compute the product of two martrixes. For example, c=a#b. Then I got a martrix which all its values are 9.969209968386869e+36. I believe it has something to do with its Fill_value, but how can I solve this problem?</div><div>Please, help me. Thanks.</div><div>Chen</div></div><br><br><span title="neteasefooter"><p> </p></span>_______________________________________________<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>