Main Content

matlab.io.fits.getColType

经缩放的列的数据类型、重复值、宽度

语法

[dtype,repeat,width] = getColType(fptr,colnum)

说明

[dtype,repeat,width] = getColType(fptr,colnum) 返回 ASCII 或二进制表中列的数据类型、向量重复值和宽度(以字节为单位)。

此函数对应于 CFITSIO 库 C API 中的 fits_get_coltypell (ffgtclll) 函数。

示例

获取第二个 HDU 中“FLUX”列的相关信息。

import matlab.io.*
fptr = fits.openFile('tst0012.fits');
fits.movAbsHDU(fptr,2);
[dtype,repeat,width] = fits.getColType(fptr,5);
fits.closeFile(fptr);

另请参阅