hfs_view is an interactive graphic procedure for displaying spectra from a fits data cube and the corresponding synthetic spectra. The data and synthetic spectra at any pixel can be extracted in ASCII files.
$ hfs_view test2_cube.par _________________________________________ HfS_view. View data and synthetic spectra Robert Estalella, 2013/05, 2015/12 __________________________________________ naxis= [128, 128, 124] Storage allocated successfully for arrays Fits file: test1.fits (1) Cols (2) Rows (3) Chan CTYPEi= RA---SIN DEC--SIN VELO-LSR NAXISi= 128 128 124 CRPIXi= 64.000 65.000 64.000 CRVALi= 333.784 58.819 -18300.000 CDELTi= -1.917E-04 1.917E-04 -3.089E+02 CROTAi= 0.000E+00 0.000E+00 0.000E+00 EQUINOX= 2000.0 Sorting velocities in ascending order Reading out file test2_cube_comp1.out Reading out file test2_cube_comp2.out Delt_x, Delt_y: ( 1, 1) ( -0.69, +0.69) TRC: (0077, 0036) (-0008.97, -0020.01) BLC: (0076, 0035) (-0008.28, -0020.70) Click LEFT button (A) to select POSITION Click MIDDLE button (D) to switch COMPONENT Click RIGHT button (X) to EXIT Press P key to PRINT spectrum and fit<parfile>.par, the same parameter file used as input to hfs_cube. From the information in this file, hfs_view reads the corresponding fits data cube and the <parfile>_comp#.out file for each velocity component (created by hfs_cube), with the parameters of the fitted spectra.<parfile>_<xoffset>_<yoffset>.spec: data spectrum for the pixel selected, with the hanning filtering and boxcar smoothing given in the <parfile>.par file.<parfile>_<xoffset>_<yoffset>.synt: synthetic spectrum fitted for the pixel selected.