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

Home » Public Forums » archive » Re: BYTES to LONG
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: BYTES to LONG [message #22334 is a reply to message #22325] Tue, 07 November 2000 00:00 Go to previous messageGo to previous message
Kelly Dean is currently offline  Kelly Dean
Messages: 92
Registered: March 1997
Member
Doing a POINT_LUN, then ReadU them in as LONG works.

I am testing a method were I reading in the whole at once, then loop though it
later.

Kelly

Med Bennett wrote:

> If your variables for holding X and Y are of the correct type, you should be
> able to read up to or point_lun to the proper place in the file, and then
> read them in directly using the READU command. It helps to have a hex
> editor/viewer to figure out the offsets into the file that you are looking
> for.
>
> Kelly Dean wrote:
>
>> I am reading in a combination ASCII/BINARY file with USGS DLG
>> information as a binary file.
>>
>> I am able to convert the bytes into ASCII with STRING([72B, 101B, 108B,
>> 108B, 111B]).
>>
>> However, I cannot figure out how to convert the 4 bytes into LONG, whihc
>> is the UTM X and Y numbers. Any suggestions?
>>
>> Kelly
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Electrical Engineer/Controls Specialist Wanted
Next Topic: Re: UTM conversion

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

Current Time: Sat Oct 11 15:23:59 PDT 2025

Total time taken to generate the page: 0.48059 seconds