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

Home » Public Forums » archive » Re: formatting array output?
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: formatting array output? [message #33856 is a reply to message #33855] Thu, 30 January 2003 12:34 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Murat Maga" <maga@mail.utexas.edu> wrote in message
news:3E39A27F.3DC7F39D@mail.utexas.edu...

>>> I have an integer array (2000x1000) which I would like to write in
>>> file in the typical matrix convention. I think IDL breaks the line
>>> at 80th column and everything starts to look quite messy.

> Thanks for the answers everybody. Yes I do need to use an ASCII
> format, HDF is not an option for me. I also need to parse the file
> manually -at least partially-, that is the other reason.

How about writing the array dimensions on the first line of the file,
followed by array @ 1 element per line? It's easy to parse
programmatically, easy to parse manually, and you are not tempted to
muck around getting everything to line up.

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: last array index subscript
Next Topic: Re: Alpha Blending inside of Widgets / Graphic Objects in Widgets

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

Current Time: Sat Oct 11 08:19:37 PDT 2025

Total time taken to generate the page: 1.28186 seconds