<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 14, 2010, at 4:46 PM, Mary Haley wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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>&nbsp;&nbsp; ncl -x &nbsp; 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 class="Apple-interchange-newline"><blockquote type="cite"><div>Hi friends,</div> <div>&nbsp;</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>&nbsp;</div> <div>What is that? Do I need to care it?</div> <div>&nbsp;</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">ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/veer/MAP_DATA/files/PODAAC/SW_S2B01667E.20031000005-20031000147.20061182243.hdf</a></div> <div>&nbsp;</div> <div>Thanks a lot.</div> <div>&nbsp;</div> <div>Best,</div> <div>Yi Wang</div> <span>&lt;SW_S2B01667E.20031000005-20031000147.20061182243.ncl&gt;</span>_______________________________________________<br>ncl-talk mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></blockquote></div><br></div></div></blockquote></div><br></body></html>