New Reply

How to correctly read in visibility data from a FITS file using IDL

 
Share Thread Thread Tools
Jun11-12, 08:27 AM   #1
 

How to correctly read in visibility data from a FITS file using IDL


Hi,
I'm having some trouble reading in some data from a FITS file. The FITS file has visibility data for 256 different frequency channels but I only seem to be able to read in the data for the first frequency channel. My question is how do I change which frequency channel I want to look at, for example look at the 100th freq channel rather than the first?

The code I have written in IDL to open the file and extract information so far is:


infile = 'finaluv.fits'

data = mrdfits(infile,0,hdr)

params = data.params
array = data.array

u = params[0,*]
v = params[1,*]
baseline = params[5,*]

real = reform(array[0,0,100,*])
imag = reform(array[0,0,100,*])

visibility = sqrt(real^2+imag^2)
uvdistance = sqrt(u^2 +v^2)
PhysOrg.com
PhysOrg
astronomy news on PhysOrg.com

>> Hubble reveals the ring nebula's true shape
>> Accurate distance measurement resolves major astronomical mystery
>> A hidden population of exotic neutron stars
New Reply

Tags
fits file, idl, visibility
Thread Tools


Similar Threads for: How to correctly read in visibility data from a FITS file using IDL
Thread Forum Replies
Getting fortran to read a text file and write the whole file to a different location Programming & Comp Sci 4
Fortran: Read data from a line in a file Programming & Comp Sci 1
Procedure to convert a FITS file into a Healpix file General Astronomy 0
Converting Healpix file to traditional fits format General Astronomy 1
conversion of healpix fits file to normal fits file Cosmology 3