Main Content

matlab.io.fits.getAColParms

Get ASCII table information

Syntax

[ttype,tbcol,tunit,tform,scale,zero,nulstr,tdisp] = matlab.io.fits.getAColParms(fptr,colnum)

Description

[ttype,tbcol,tunit,tform,scale,zero,nulstr,tdisp] = matlab.io.fits.getAColParms(fptr,colnum) gets information about an existing ASCII table column.

Examples

collapse all

Open a sample FITS file that has an ASCII table in the fifth HDU. Get information about the second column of the table. Then close the sample file.

import matlab.io.*
fptr = fits.openFile("tst0012.fits");
fits.movAbsHDU(fptr,5);
[ttype,tbcol,tunit,tform,scale,zero,nulstr,tdisp] = fits.getAColParms(fptr,2)
ttype = 
'Mag'
tbcol = 
11
tunit =

  0×0 empty char array
tform = 
'F6.2'
scale = 
1
zero = 
0
nulstr = 
'---.--'
tdisp =

  0×0 empty char array
fits.closeFile(fptr)

Tips

  • This function corresponds to the fits_get_acolparms (ffgacl) 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.

Extended Capabilities

expand all

Version History

expand all