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

Home » Public Forums » archive » Re: MSB, LSB?
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: MSB, LSB? [message #14443 is a reply to message #14441] Thu, 04 March 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
������ (raptor28@net-in.co.kr) writes:

> i want to read some datas.
> its description is below.
>
> <Description of Data>
> Spatial Resolution : 3" x 3"(about 90m)
> Number of Row and Column : 1201 x 1201
> Pixel depth : 2byte
> Height Accuracy : 1m
> File Name E127n38.img : E127 - E128, N38 - N39
> File Format : unformatted binary
> Height = MSB(most significant bits) * 256 + LSB(least significant bits)
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> i can't read this data to use IDL
> how read?


OpenR, lun, thisFile, /Get_Lun
data = IntArr(1201, 1201)
ReadU, lun, data
Free_Lun, data
height = Byte(data, 0) * 256 + Byte(data, 1)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: hiding scrollbars
Next Topic: Re: Keyboard events in a widget

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

Current Time: Sun Oct 12 04:17:35 PDT 2025

Total time taken to generate the page: 1.52084 seconds