Re: READF: Input conversion error. [message #91318 is a reply to message #91317] |
Mon, 29 June 2015 09:22   |
Priyadarsini Sivaraj
Messages: 15 Registered: June 2015
|
Junior Member |
|
|
On Monday, 29 June 2015 12:15:02 UTC-4, David Fanning wrote:
> Priyadarsini Sivaraj writes:
>
>> Thank you so much sir!
>> But another error pops out saying,
>> READF: Input conversion error. Unit: 105,
>> How can I handle this..?
>
> Without you giving us information about where errors are occurring in
> your program, we can only guess. Normally, errors like this occur when
> you tell IDL to read a number is there is only a string there, or visa
> versa.
>
> Find the line that is causing you the error (it is in your error
> message), then stop the code there and examine what is in the file at
> that location and what you are trying to read (the HELP command will be
> useful to you). You are making assumptions about what is happening that
> aren't true. Make sure all your data types are matching. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
There are two READF statements in my code.This error occurs at the line:
READF, lun1, id, x, y, lat, lon
Here, I try to read the text into variables namely: id, x, y, lat, lon.
Is there anything that I can do to rectify this error..?
|
|
|