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

Home » Public Forums » archive » Reading binary (.ply) file of varying header size
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Reading binary (.ply) file of varying header size [message #89654] Thu, 06 November 2014 08:40 Go to previous message
desertdryad is currently offline  desertdryad
Messages: 39
Registered: August 2011
Member
Hi folks -

Way out of practice IDL programmer, here. I need to be able to read binary files, with potentially variable length header files, in a function in IDL.
I'm not usre what the most efficient way to do that is; it seems it's easy if one knows a priori the number of bytes in the header, but i can't make that assumption. The files are .ply files, by the way, the header will tell me how much data follows, and the header ends with a specific set of characters. So, if I can read the header line by line, I can scan for the proper 'text' indicating end of header, and I know how to read in the rest. It's the header part I don't know how to do.

Anyone have a few hints? Or if you know where I can find a binary ply to idl data structure procedure and can point me there, I'm eternally grateful :)
[Message index]
 
Read Message
Read Message
Previous Topic: Coord_transform in axes
Next Topic: Turn off "< Press Spacebar to continue, ? for help >"

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

Current Time: Wed Oct 08 11:43:59 PDT 2025

Total time taken to generate the page: 0.00409 seconds