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

Home » Public Forums » archive » Re: concatenate arrays of different sizes
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: concatenate arrays of different sizes [message #59429 is a reply to message #59427] Thu, 27 March 2008 08:48 Go to previous messageGo to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Mar 27, 10:34 am, vino <astrocr...@gmail.com> wrote:
> Hello Everyone,
> I am trying to concatenate arrays of different sizes into a single
> variable.The problem is as follows:
> I am tracking about 10,000 stars through a period of six months. I
> have a single variable containing the intensity of all stars with
> zeros when the star is not in the field of view. I ran into memory
> problems when i try to track for longer periods.
> so i thought of storing the information only when the stars are
> present in the field of view. This is where i am lost since each star
> is present for different periods and i dont know how to store them all
> in a single variable. The alternative might be to store each star
> information in a single file but the aim of my project is to track
> about half a million stars, i wanted to do something sensible right
> from the first.
>
> Thanking you in advance for your help
>
> regards,
> vino

I would use an array of structures...
for each star:
star_data[i] = {star_id:current_star_id, month:obs_month,
intens:current_star_intensity}
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Shapefile 'parts' woes
Next Topic: Need GOES Image Expert

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

Current Time: Fri Oct 10 09:43:47 PDT 2025

Total time taken to generate the page: 1.12410 seconds