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

Home » Public Forums » archive » Extracting variables from ascii files that are not in columnar format
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
Extracting variables from ascii files that are not in columnar format [message #70385] Fri, 09 April 2010 12:08
fgg is currently offline  fgg
Messages: 67
Registered: April 2010
Member
Hello,

I’d like to make idl read data from an ASCII file like this:

i_gla01_rectype = 1
i_Spare1 = 0
i_dShotTime = 25000 50000 75000
100000 125000
150000 175000 200000 225000 250000
275000
300000 325000 350000 375000 400000
425000
900000 925000 950000 975000
i1_pred_lat = -3234293
i1_pred_lon = 304814509

... and print all the variables (that is, i_gla01_rectype, i_Spare1,
etc...) in an easy to use column output format:

i_gla01_rectype i_Spare1 i_dShotTime i1_pred_lat i1_pred_lon
1 0 25000 -3234293 304814509
50000
75000
100000
125000
150000
175000


Does anyone have a script that might help?

Thanks in advance,
Fabio
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: reading images stored compressed in FITS files binary extensions
Next Topic: Re: Extracting variables from ascii files that are not in columnar format

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

Current Time: Wed Oct 08 19:05:45 PDT 2025

Total time taken to generate the page: 0.01041 seconds