<p>Thanks Eric, I will take a look at those routines and the memo. -Paul-</p>
<div class="gmail_quote">On Jul 25, 2012 12:56 AM, "Eric Greisen" <<a href="mailto:egreisen@nrao.edu">egreisen@nrao.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Paul Matthew Sutter wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the quick reply Eric. I am familiar with CFITSIO and am<br>
currently using it. I was having difficulty getting the headers/tables<br>
correct. I was just wondering if someone has already written something<br>
like this so I wouldn't have to reinvent the wheel.<br>
<br>
Another possibility: the mocks I'm making are rather simple (one<br>
channel, one pointing, etc.). Is there a way to write a simple binary<br>
file and still have AIPS read it? Or does it have to be a full FITS<br>
file? Thanks!<br>
<br>
-Paul-<br>
<br>
On Tue, Jul 24, 2012 at 5:27 PM, Eric Greisen <<a href="mailto:egreisen@nrao.edu" target="_blank">egreisen@nrao.edu</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Paul Matthew Sutter wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Eric, my name is Paul Sutter, and I am a post-doc working with<br>
Ben Wandelt. I am interested in making some mock radio interferometer<br>
observations and deconvolving these mock images with CLEAN in AIPS.<br>
However, I am having some difficulty getting the file format correct.<br>
Are there any C routines that read and/or write AIPS-compatible FITS<br>
files? Thank you! -Paul-<br>
</blockquote>
<br>
There is an entire package of routines called CFITSIO which is described and<br>
available from the main FITS information web site:<br>
<a href="http://fits.gsfc.nasa.gov/" target="_blank">http://fits.gsfc.nasa.gov/</a><br>
<br>
I could help with the debugging if necessary - this package is not used that<br>
much in UV data applications (although bcotton's OBIT package uses it).<br>
There are data emulation tasks in AIPS called DTSIM and UVCON which could<br>
help with this issue.<br>
</blockquote></blockquote>
<br>
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).<br>
<br>
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.<br>
<br>
The tasks DTSIM and UVCON would be best if they can be used.<br>
<br>
Eric Greisen<br>
</blockquote></div>