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

Home » Public Forums » archive » Re: Extracting arrays into txt files
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: Extracting arrays into txt files [message #46073 is a reply to message #46072] Thu, 03 November 2005 03:10 Go to previous messageGo to previous message
Norbert Hahn is currently offline  Norbert Hahn
Messages: 46
Registered: May 2003
Member
txominhermos@hotmail.com wrote:

> Hi!
>
>
>
> I would like to know how to extract a full array into a txt file,
> maintaining the samples and collums format, to export it to a excel
> file or similar.

The best format for exporting data is CSV. Numbers are in ASCII,
separated by either comma, semicolon or TAB, whatever you like.
The importing program should be told the separator you used
during export and maybe some more hints if the data isn't plain
integer or fixed point data. Hints are needed to date/time values,
currency values and such.

Text may be exported as well and each cell should be enclosed in
quotes.

To maintain the row/column of your arry you need to cycle thru
you data line by line. You may need to specify a format with the
print statement to avoid a new line after 80 or 256 bytes of
output as the receiving program will start a new line of input
if it detects a line feed in the data.

Norbert
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: reading wav files
Next Topic: Re: online help IDL 6.2

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

Current Time: Mon Dec 01 09:15:25 PST 2025

Total time taken to generate the page: 1.04682 seconds