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

Home » Public Forums » archive » READF: Input conversion error.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: READF: Input conversion error. [message #91318 is a reply to message #91317] Mon, 29 June 2015 09:22 Go to previous messageGo to previous message
Priyadarsini Sivaraj is currently offline  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..?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: cw_form widget offset
Next Topic: READ, adn get data into an array from LARGE SIZE FILES

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

Current Time: Wed Oct 08 19:35:10 PDT 2025

Total time taken to generate the page: 0.00456 seconds