I have to create a fits file using the data from two IDL structures. This is not the basic problem.
My problem is that first I have to create a variable that contains the two structures. To create this I used a for loop that will write at each step a new row of my variable. The problem is that I cannot add the new row at the next step, it overwrite it so at the end my fits file instead of having, I don't know, 10000 rows, it has only one row.
This is what I also tried
for jj=0,h[1]-1 do begin
test[*,jj] = [sme.wave[jj], sme.smod[jj]]
print,test
endfor
but the *
wildcard is messing up everything because now inside test
I have the number corresponding to jj
, not the values of sme.wave
and sme.smod
.
I hope that someone can understand what I asked and that can help me! thank you in advance!
Chiara