On Mar 27, 10:34 am, vino <astrocr...@[EMAIL PROTECTED]
> 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}


|