Re: Argument 0 of... was coerced to the appropriate type and thus will not change...

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Jun 14 2010 - 17:40:17 MDT

On Jun 14, 2010, at 4:46 PM, Mary Haley wrote:

> Hi Yi,
>
> 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).
>
> 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.
>
> 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.
>
> Do you know which function or procedure is causing this error?
>
> 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:
>
> ncl -x your_script.ncl
>
> This will echo every line as it is being executed, and you should
> then see where the warning is coming from.
>
> 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.
>
> --Mary
>
>
> On Jun 14, 2010, at 3:01 PM, Yi Wang wrote:
>
>> Hi friends,
>>
>> When I run SW_S2B01667E.20031000005-20031000147.20061182243.ncl
>> (see attachment) I got a warning:
>> 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.
>>
>> What is that? Do I need to care it?
>>
>> The corresponding hdf file is below:
>> ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/veer/MAP_DATA/files/PODAAC/SW_S2B01667E.20031000005-20031000147.20061182243.hdf
>>
>> Thanks a lot.
>>
>> Best,
>> Yi Wang
>> <SW_S2B01667E.
>> 20031000005
>> -20031000147.20061182243
>> .ncl>_______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jun 14 17:40:23 2010

This archive was generated by hypermail 2.1.8 : Wed Jun 16 2010 - 15:28:33 MDT