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

Home » Public Forums » archive » Unknown data type
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Unknown data type [message #42107] Thu, 30 December 2004 05:59 Go to previous message
julio is currently offline  julio
Messages: 31
Registered: December 2003
Member
Hello,

The files I want to read haven't any typical format. Each file has
information in the first line (like number of rows and columns), but
anything about data type�

So, I followed the tips of David. I carried out a "trial read" using�

Data_type=integer ; I assume all the files are integer
ON_IOERROR, bad
OPENR,lun, arq, /GET_lun
test = make_array(nc, nl,/integer)
READU, lun, test ; reading the file into an integer array
GOTO, Ok
bad: data_type=byte ; if the file coudn't be read into an integer
array
Ok: FREE_LUN, lun

As I told you first, I have only two possible data types: byte and
integer. So, using it, I could solve the problem.

Thanks David and others,
Julio
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GUI builder limitations?
Next Topic: passing objects between GUI callbacks

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

Current Time: Sat Nov 29 00:47:25 PST 2025

Total time taken to generate the page: 0.10192 seconds