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

Home » Public Forums » archive » reading past leading and training bytes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
reading past leading and training bytes [message #49218] Thu, 06 July 2006 10:02
glaciologist is currently offline  glaciologist
Messages: 4
Registered: April 2006
Junior Member
I'm using readu to read a 101 X 55 (2D) binary file

The file has leading and trailing 4 byte tags ( 00 00 56 CC in
hexadecimal).

How to skip past these??!

I use this code, which successfully reads in array, but first column
gets scrambled!~

readu,1,data
byteorder,data,/xdrtof ; byteswap needed

data are output by Linux Fedora 4 Portland Group FORTRAN executable
with -byteswapio flag set on compile

With thanks!

Jason Box
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: reading data from file
Next Topic: Re: ESRI Shapefiles

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

Current Time: Wed Oct 08 19:42:28 PDT 2025

Total time taken to generate the page: 0.00523 seconds