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

Home » Public Forums » archive » export structure to an ascii file
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
export structure to an ascii file [message #84871] Fri, 14 June 2013 16:42 Go to next message
jguerra is currently offline  jguerra
Messages: 1
Registered: June 2013
Junior Member
Hello,

I am interested to export a file which is built in a structure to an ascii file.
The file looks like;
IDL> help,m2,/str
** Structure <87b1224>, 11 tags, length=192, data length=192, refs=1:
TIME_STAMP LONG64 4874479206315681
TAI_OFFSET LONG 35000000
S1 STRUCT -> <Anonymous> Array[1]
S2 STRUCT -> <Anonymous> Array[1]
S3 STRUCT -> <Anonymous> Array[1]
D1 STRUCT -> <Anonymous> Array[1]
D2 STRUCT -> <Anonymous> Array[1]
D3 STRUCT -> <Anonymous> Array[1]
LI STRUCT -> <Anonymous> Array[1]
LN STRUCT -> <Anonymous> Array[1]
ROVER STRUCT -> <Anonymous> Array[1]

help,m2.s2,/str
** Structure <87a867c>, 5 tags, length=20, data length=20, refs=2:
O_S2_3 FLOAT 0.00178128
O_S2_1 FLOAT 0.00469238
O_S2_5 FLOAT 0.00737160
O_S2_2 FLOAT 0.0141963
O_S2_4 FLOAT 0.00693172

The file exported will contain the; m2.time_stamp,m2.s2.o_s2_1,..m2.s2.o_s2_5

I tried to use printf, but I don't get the right dimension for the file.

Any suggestion.

juan
Re: export structure to an ascii file [message #84873 is a reply to message #84871] Sat, 15 June 2013 01:56 Go to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
Hi,

Try WRITE_CSV

Cheers,

Fab

On 06/15/2013 01:42 AM, jguerra@lbto.org wrote:
> Hello,
>
> I am interested to export a file which is built in a structure to an ascii file.
> The file looks like;
> IDL> help,m2,/str
> ** Structure <87b1224>, 11 tags, length=192, data length=192, refs=1:
> TIME_STAMP LONG64 4874479206315681
> TAI_OFFSET LONG 35000000
> S1 STRUCT -> <Anonymous> Array[1]
> S2 STRUCT -> <Anonymous> Array[1]
> S3 STRUCT -> <Anonymous> Array[1]
> D1 STRUCT -> <Anonymous> Array[1]
> D2 STRUCT -> <Anonymous> Array[1]
> D3 STRUCT -> <Anonymous> Array[1]
> LI STRUCT -> <Anonymous> Array[1]
> LN STRUCT -> <Anonymous> Array[1]
> ROVER STRUCT -> <Anonymous> Array[1]
>
> help,m2.s2,/str
> ** Structure <87a867c>, 5 tags, length=20, data length=20, refs=2:
> O_S2_3 FLOAT 0.00178128
> O_S2_1 FLOAT 0.00469238
> O_S2_5 FLOAT 0.00737160
> O_S2_2 FLOAT 0.0141963
> O_S2_4 FLOAT 0.00693172
>
> The file exported will contain the; m2.time_stamp,m2.s2.o_s2_1,..m2.s2.o_s2_5
>
> I tried to use printf, but I don't get the right dimension for the file.
>
> Any suggestion.
>
> juan
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 8.2.3 released!
Next Topic: spacing between characters

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

Current Time: Wed Oct 08 15:08:11 PDT 2025

Total time taken to generate the page: 0.00465 seconds