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

Home » Public Forums » archive » Lots of 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
Lots of files [message #53058] Fri, 16 March 2007 10:36 Go to previous message
lasse is currently offline  lasse
Messages: 48
Registered: February 2007
Member
Hi there,

I have a file containing magnetic field data from 31 stations in the
following form

stat01 lots of data
stat02 lots of data
.
.
.
stat31 lots of data
stat01 lots of data
stat02 lots of data
.
.
.
i.e. each line contains data for one station.

I would like to split the one file into 31. In fact, I would like to
open all 32 files, loop through the big file and put the data
according to the index into the small file. However, IDL only lets me
open 28 files at a time, right?
IDL Help for Get_lun says: The file unit number obtained is in the
range 100 to 128.
So I end up opening and closing the according small file during each
loop which works great, however it is excruciatingly slow due to all
the waiting for the hard disk.

Ah, and the number of stations varies, sometimes its 21, sometimes 29,
most of the time 30, I never know what it is going to be. Therefore, I
can only use the point_lun procedure to skip from data to data
belonging to one station if I parse the stations first. Which I could
do, but maybe one of you has a better idea? Any thoughts?

Cheers
Lasse
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: replicating arrays
Next Topic: Re: Question about selecting images from Draw Widgets

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

Current Time: Thu Oct 09 21:14:50 PDT 2025

Total time taken to generate the page: 1.12389 seconds