fdump -- Convert the contents of a FITS table to ASCII format.
fdump infile[ext#] outfile columns rows
This task converts the information in the header and data of a FITS table extension (either ASCII or binary table) into an ASCII format file which then may be displayed, printed, or edited. If desired the edited ASCII file may be converted back into a FITS file using the fcreate task. By default, fdump will convert all the rows and columns of the table extension as well as all the header records to the output ASCII file, but only selected information may be output by setting the input parameters appropriately. Fdump will fit as many table columns as possible on the output page (the page width can be specified with the pagewid parameter); any additional columns will be output onto subsequent pages of output. The output format is either a default format or specified with TDISPn keywords.
This task is primarily designed to display FITS table extensions and currently it can only output the header records of the primary array or image extensions. Use the fimgdmp task to output the data in a FITS image.
Optionally the list of column names can be placed in an ASCII file, one name per line, and then the name of the file, proceeded by an "@" character may be given to the "columns" parameter. If the first non-white character in the column list is the negation character then the output file will contain those columns NOT named in the remainder of the column list.
The 'flcol' task (with the NLIST parameter set to 1) may be used to generate a list of column names suitable for input to this task.
default option: b10000101 b11 D option: 133 192 B option: b1000010111
1. Dump the contents of the FITS table 'junk.fits' to the terminal:
ft> fdump junk.fits STDOUT
2. Dump 'junk.fits', including only the columns specified in the colnames.lis file.
ft> flcol junk.fits nlist=1 outfile = colnames.lis ft> edit colnames.lis (Delete or rearrange the order of the column names) ft> fdump junk.fits columns=@colnames.lis
3. Dump only the first 100 rows of data in the file 'big.fits' to an output file 'big.dat'; do not output the header keywords.
ft> fdump big.fits big.dat rows=1-100 prhead=no
FDUMP truncates trailing blanks.
Fdump cannot display the data in a FITS primary array or image extension.
If the width of a scaled column in an ASCII table is less than 8 characters, the value cannot be displayed.
ftlist, ftcreate. fv, the interactive FITS file editor, can also be used to view the contents of a FITS file.