- #1
Radiohannah
- 49
- 0
IDL and arrays...help!
Hello!
I have 2 .fits files which I wish to read into IDL.
Then I want to convert these into arrays with i columns and j rows.
I am going a bit mad trying to 'define' i and j and would really appreciate any help.
Say I had 2 files, A.fits and B.fits....
If I wanted to open these into IDL as arrays I would type
A = readfits('A.fits')
B = readfits('B.fits')
After which the terminal says READFITS: Now reading 100 by 100 array, etc
How do I then label the ith column of numbers 'i' and jth rows 'j' for A and B?
I have tried
A(100,100) = A(i,j)
B(100,100) = B(i,j)
amongst many, many others combinations and cannot 'define' i nor j at all!
Any pointers would be massively appreciated!
Cheers!
Hello!
I have 2 .fits files which I wish to read into IDL.
Then I want to convert these into arrays with i columns and j rows.
I am going a bit mad trying to 'define' i and j and would really appreciate any help.
Say I had 2 files, A.fits and B.fits....
If I wanted to open these into IDL as arrays I would type
A = readfits('A.fits')
B = readfits('B.fits')
After which the terminal says READFITS: Now reading 100 by 100 array, etc
How do I then label the ith column of numbers 'i' and jth rows 'j' for A and B?
I have tried
A(100,100) = A(i,j)
B(100,100) = B(i,j)
amongst many, many others combinations and cannot 'define' i nor j at all!
Any pointers would be massively appreciated!
Cheers!