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
Re: Unknown data type [message #42129 is a reply to message #42107] Mon, 27 December 2004 19:19 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Julio writes:

> I can read byte or integer images using byte or integer arrays, like:
>
> byte_image=bytarr(samples, rows) or
> integer_image=intarr(samples, rows)
>
> In both cases I must know the data type. But, when I don't know the
> data type, how can I do to read the images? Is there some way to
> verify the file format before reading into an array?

How can you find the New Year's party when you don't
know the address? It's a problem. :-(

Cheers,

David

P.S. You could do a small "trial read" and see
if the data "made sense" the way you read it.
What "makes sense" means is kind of up to you.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[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 05:55:38 PST 2025

Total time taken to generate the page: 1.85620 seconds