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

Home » Public Forums » archive » structures?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
structures? [message #85772] Thu, 05 September 2013 08:26 Go to previous message
Seb is currently offline  Seb
Messages: 15
Registered: January 2006
Junior Member
Hi,

I'm trying to avoid cumbersome loops, and think that using structure
arrays or pointers, along with index handling, should help. Say we want
to build a table of data for each day in a sequence of julian days. The
rows in the table for each day represent a unique time of that day. Now
we want to examine a collection of files containing data for a
particular date/time, and assign each row to the corresponding row in
the table for that day. I envision doing this as follows:

n_days=10
a_arr=replicate({idxvar:0.0, table:fltarr(10, 10)}, n_days)

where idxvar represents a julian day, and the table contains the time
series for that day. We could then loop through each file, examining
each row and determining which day and which table row in a_arr the row
belongs to. Is there a better way to approach this? My concern is that
the tables for each day could be very large if the time step in the
time series is very small (say a second), and also there could be a
large number of days to build time series for. Is this one of those
cases where looping, while horrible, is a more resource-friendly way to
deal with this?

Thanks,

--
Seb
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Does the IDLDE regularly hang for anyone else?
Next Topic: multiline .compile syntax for a batch file

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

Current Time: Fri Oct 10 09:44:49 PDT 2025

Total time taken to generate the page: 0.00203 seconds