[daip] routine to write FITS-compatible files

Eric Greisen egreisen at nrao.edu
Tue Jul 24 18:56:19 EDT 2012


Paul Matthew Sutter wrote:
> Thanks for the quick reply Eric. I am familiar with CFITSIO and am
> currently using it. I was having difficulty getting the headers/tables
> correct. I was just wondering if someone has already written something
> like this so I wouldn't have to reinvent the wheel.
> 
> Another possibility: the mocks I'm making are rather simple (one
> channel, one pointing, etc.). Is there a way to write a simple binary
> file and still have AIPS read it? Or does it have to be a full FITS
> file? Thanks!
> 
> -Paul-
> 
> On Tue, Jul 24, 2012 at 5:27 PM, Eric Greisen <egreisen at nrao.edu> wrote:
>> Paul Matthew Sutter wrote:
>>> Hello Eric, my name is Paul Sutter, and I am a post-doc working with
>>> Ben Wandelt. I am interested in making some mock radio interferometer
>>> observations and deconvolving these mock images with CLEAN in AIPS.
>>> However, I am having some difficulty getting the file format correct.
>>> Are there any C routines that read and/or write AIPS-compatible FITS
>>> files? Thank you! -Paul-
>>
>> There is an entire package of routines called CFITSIO which is described and
>> available from the main FITS information web site:
>> http://fits.gsfc.nasa.gov/
>>
>> I could help with the debugging if necessary - this package is not used that
>> much in UV data applications (although bcotton's OBIT package uses it).
>> There are data emulation tasks in AIPS called DTSIM and UVCON which could
>> help with this issue.

If you can compile AIPS code then there is a thing we call a paraform 
task.  The relevant one is UVFIL.  Take a look at its help file and the 
code itself (in $APGNOT).

There is a detailed memo I just wrote - AIPS Memo 117 available from our 
web site which may help with some details in FITS and things like 
antenna tables and such.

The tasks DTSIM and UVCON would be best if they can be used.

Eric Greisen




More information about the Daip mailing list