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

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Jun 14 2010 - 17:08:36 MDT

Remove

    scale = hdf_file->wvc_lon@scale_factor
    lon2d = stringtofloat(scale) * lon2d

printVarSummary(scale) ; <=== scale is already type float

Why use: lon2d = stringtofloat(scale) * lon2d

The error message comes because the stringtofloat expects
a string and you passed a float.

===

On 06/14/2010 03: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
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate & Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jun 14 17:08:41 2010

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