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

Home » Public Forums » archive » Importing Binary Images
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: Importing Binary Images [message #29002 is a reply to message #28873] Thu, 24 January 2002 09:06 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
rschick@neaq.org (rob schick) writes:
> Ok - thanks to all for the replies. The program creating the image, is
> in row-major. I created the image on an NT machine, and am using IDL
> on a linux machine (intel processor).
>
> I tried
> IDL> openr, 1, 'gom15dd.dat', /swap_if_little_endian
> IDL> ms = intarr(2041,1561)
> IDL> readu, 1, ms
> IDL> tvscl, ms
>
> and this looks better. I don't think it's quite correct, so my
> questions as related to the suggestions are:
>
> If my image is indeed not byte, do I do something different, e.g.
> -rw-r--r-- 1 robs robs 12744004 Jan 17 14:38 gom15dd.dat
> that value divided by (1561x2041) = 4 ?

Umm, BYTE = 1 byte, INT = 2 bytes, LONG = 4 bytes (ignoring
distinction between unsigned and signed). So, looks like you want a
LONARR, not an INTARR.

Good luck,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: In case someone has trouble including export.h
Next Topic: Question again :)

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

Current Time: Sat Oct 11 19:49:00 PDT 2025

Total time taken to generate the page: 3.92269 seconds