comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: casting error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: casting error [message #69882] Tue, 02 March 2010 04:15 Go to next message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Tue, 2 Mar 2010 03:56:48 -0800 (PST), a
<oxfordenergyservices@googlemail.com> wrote:

> Hi
>
> I have an error which comes quite infrequently, but it doesn't stop
> the program...it is a casting error, but I don't know how to fix
> without the program stopping for me. any ideas?
>
> warning below
>
> % Type conversion error: Unable to convert given STRING to Float.
>
> Thanks
>
> Russ

This happens when doing e.g.
IDL> print,float('test')

To find out where this happens, set except to 2:
!EXCEPT=2
Re: casting error [message #70062 is a reply to message #69882] Fri, 05 March 2010 01:46 Go to previous message
oxfordenergyservices is currently offline  oxfordenergyservices
Messages: 56
Registered: January 2009
Member
On 2 Mar, 12:15, Wox <s...@nomail.com> wrote:
> On Tue, 2 Mar 2010 03:56:48 -0800 (PST), a
>
> <oxfordenergyservi...@googlemail.com> wrote:
>> Hi
>
>> I have an error which comes quite infrequently, but it doesn't stop
>> the program...it is a casting error, but I don't know how to fix
>> without the program stopping for me.  any ideas?
>
>> warning below
>
>> % Type conversion error: Unable to convert given STRING to Float.
>
>> Thanks
>
>> Russ
>
> This happens when doing e.g.
> IDL> print,float('test')
>
> To find out where this happens, set except to 2:
> !EXCEPT=2

great, thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: to read and to save multiple fits format files at a time
Next Topic: Converting FORTRAN to IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 23:25:05 PDT 2025

Total time taken to generate the page: 0.87844 seconds