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

Home » Public Forums » archive » Re: Extracting variables from ascii files that are not in columnar format
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 variables from ascii files that are not in columnar format [message #70384 is a reply to message #70383] Fri, 09 April 2010 12:21 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
I'll try something like that

aux=''
OPENR, un$lun, file, /GET_LUN

WHILE ~EOF(un$lun) DO BEGIN

READF, un$lun, aux

aux_str=STRSPLIT(aux,' ',/EXTRACT)

PRINT, 'label', aux_str[0:1]
PRINT, 'values', aux_str[2:*]

;; Then you can concatenate, etc...

ENDWHILE

FREE_LUN, un$lun
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Extracting variables from ascii files that are not in columnar format
Next Topic: warp_tri vs. polywarp/poly_2d

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

Current Time: Mon Oct 13 07:02:47 PDT 2025

Total time taken to generate the page: 1.59768 seconds