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

Home » Public Forums » archive » Breaking 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: Breaking files [message #71013 is a reply to message #70883] Fri, 14 May 2010 14:18 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On May 14, 4:31 pm, fgg <fabioguimaraesgoncal...@gmail.com> wrote:
> Thanks for the suggestions. I can use WHERE to flag the those lines...
> I'm just not really sure how to create a loop to run the entire script
> for the first block of lines, then for the second and so one.
>
> I use a Mac so I probably have the split utility. I'll take a look.
> Thanks!

All you do is pick out the data you want.

these = [where(stregex(data_array,'=xxx',/
boolean),nthese),n_elements(data_array)-1]
for i=0L,nthese-1 do begin
these_data = data_array[these[i]:these[i+1]]
;operate on these_data
...
endfor
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Keyword TNAME not allowed in call to: DATATYPE
Next Topic: Map Projection Question

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

Current Time: Sun Oct 12 09:21:03 PDT 2025

Total time taken to generate the page: 2.23916 seconds