matlab.io.fits.insertATbl
Insert ASCII table after current HDU
Syntax
matlab.io.fits.insertATbl(fptr,rowlen,nrows,ttype,tbcol,tform,tunit,extname)
Description
matlab.io.fits.insertATbl(fptr,rowlen,nrows,ttype,tbcol,tform,tunit,extname)
inserts a new ASCII table extension immediately following the current HDU. Any subsequent
extensions are shifted down to make room for the new extension. If the FITS file is
currently empty, then this function creates an empty primary array before appending the
table extension to the file. The new extension becomes the current HDU. If you specify
rowlen as 0, then the function calculates the
default value for rowlen based on the values of the
tbcol and ttype arguments.
Specify tform as a string array or cell array of character vectors
in one of these forms.
tform Array Element | Corresponding FITS Data Type |
|---|---|
"I | int16 column with width
|
"A | ASCII column with width
|
"F | Fixed point with width and
precision |
"E | Single precision with width
and precision
|
"D | Double precision with width
and precision
|
Note
Binary tables are recommended over ASCII tables. To insert a binary table, use the
matlab.io.fits.insertBTbl function.
Examples
Tips
This function corresponds to the
fits_insert_atbl(ffitab) function in the CFITSIO library C API.To use this function, you must be familiar with the CFITSIO C interface. You can access the CFITSIO documentation at the CFITSIO website.