<div>Hi Mary and Dennis,</div>
<div> </div>
<div>Great! Now the warning message does not show up again. It looks that "printVarSummary(variable) " is really useful. Thanks a lot. :)</div>
<div> </div>
<div>Best,</div>
<div>Yi<br><br></div>
<div class="gmail_quote">On Mon, Jun 14, 2010 at 6:40 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">
<div style="WORD-WRAP: break-word"><br>
<div>
<div>On Jun 14, 2010, at 4:46 PM, Mary Haley wrote:</div><br>
<blockquote type="cite">
<div style="WORD-WRAP: break-word">Hi Yi,
<div><br></div>
<div>This warning is coming from you calling an NCL function or procedure and passing a variable whose type is not what the function is expecting. In this case, it's the first variable being passed (argument 0).</div>
<div><br></div>
<div>NCL will try to coerce your variable to the correct type, but it's telling you that if this is a variable that is supposed to be modified by the function, that's not going to happen.</div>
<div><br></div>
<div>Usually these errors are harmless, but I highly recommend fixing them, as you don't want to get in the habit of having these errors in your code.</div>
<div><br></div>
<div>Do you know which function or procedure is causing this error?</div>
<div><br></div>
<div>If not, you can try this: comment out the "begin" and "end" for your main code (if you have them), and run your script with the "-x" option:</div>
<div><br></div>
<div> ncl -x your_script.ncl</div>
<div><br></div>
<div>This will echo every line as it is being executed, and you should then see where the warning is coming from.</div>
<div><br></div>
<div>If the function/procedure is inside a do loop or an if statement, the whole thing will be echoed as one block, unfortunately, but hopefully you can still see where the problem is.</div>
<div><br></div>
<div>--Mary</div>
<div><br></div>
<div><br>
<div>
<div>On Jun 14, 2010, at 3:01 PM, Yi Wang wrote:</div><br>
<blockquote type="cite">
<div>Hi friends,</div>
<div> </div>
<div>When I run SW_S2B01667E.20031000005-20031000147.20061182243.ncl (see attachment) I got a warning:</div>
<div>Argument 0 of the current function or procedure was coerced to the appropriate type and thus will not change if the function or procedure modifies its value.</div>
<div> </div>
<div>What is that? Do I need to care it?</div>
<div> </div>
<div>The corresponding hdf file is below:</div>
<div><a href="ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/veer/MAP_DATA/files/PODAAC/SW_S2B01667E.20031000005-20031000147.20061182243.hdf" target="_blank">ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/veer/MAP_DATA/files/PODAAC/SW_S2B01667E.20031000005-20031000147.20061182243.hdf</a></div>
<div> </div>
<div>Thanks a lot.</div>
<div> </div>
<div>Best,</div>
<div>Yi Wang</div><span><SW_S2B01667E.20031000005-20031000147.20061182243.ncl></span>_______________________________________________<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></blockquote></div><br></div></div></blockquote></div><br></div></div></div></blockquote>
</div><br>