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 #91323 is a reply to message #91322] Mon, 29 June 2015 10:49 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Priyadarsini Sivaraj writes:

> I have to read these values into separate variables namely,lun1, id, x, y, lat, lon. Earlier I had used a READF statement as follows:
> READF, lun1, header
> This is done to separate out the header and store the information present in it separately.

Why don't you put a breakpoint in your code at the line that is causing
you trouble. Instead of using the READF statement that is causing the
error, just read that line of the data file. Something like this:

line = ""
ReadF, lun1, line

Print it out:

Print, line

Is that the line you are trying to read into the variables id, x, y,
lat, and lon?

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.")
[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: Thu Oct 09 23:48:33 PDT 2025

Total time taken to generate the page: 0.56180 seconds