[daip] Problems using AIPS FITS cubes with C program

Eric Greisen egreisen at nrao.edu
Thu Jan 18 11:46:42 EST 2007


Laura Richter writes:
 > Good morning,
 > 
 > I've been writing some C programs (with CFITSIO) to manipulate FITS 
 > files that I exported from AIPS with FITTP.  Just for testing the 
 > program I've been using a single channel FITS files from
 > AIPS and a simple test 6x6x3 data cube I created with fv (fitsviewer).
 > 
 > However, when I ran the code on a data cube exported from AIPS with
 > FITTP, it gives me errors:
 > 
 > --------------------------
 > phlr at kepler:~/PhD/programming$ ./FFTcorrel-3D cube1.fits cube2.fits
 > myout1.fits > out1
 > 
 > FITSIO status = 104: could not open the named file
 > failed to find or open the following file: (ffopen)
 > cube1.fits
 > ----------------------------
 > 
 > I also found I can't open these data cubes in fv, where it tells me
 > "File not found."
 > 
 > Is there some issue with the formatting of cubes, rather than single 
 > images, that I am not aware of? Or perhaps I am exporting them 
 > incorrectly with FITTP?

The error message "File not found" does not indicate a format problem
but some sort of problem with the path to the file.  The FITSIO
message could be that as well.  I am at this moment running fv on a
recent cube from aips and there is no problem.

Eric Greisen




More information about the Daip mailing list