Main Content

matlab.io.fits.getHDUnum

FITS 文件中当前 HDU 的编号

语法

N = getHDUnum(fptr)

说明

N = getHDUnum(fptr) 返回 FITS 文件中当前 HDU 的编号。主数组的 HDU 编号为 1。

此函数对应于 CFITSIO 库 C API 中的 fits_get_hdu_num (ffghdn) 函数。

示例

import matlab.io.*
fptr = fits.openFile('tst0012.fits');
n = fits.getHDUnum(fptr);
fits.closeFile(fptr);

另请参阅

|