matlab.io.fits.movAbsHDU
移至绝对 HDU 编号
语法
htype = fits.movAbsHDU(fptr,HDUNUM)
说明
htype = fits.movAbsHDU(fptr,HDUNUM)
移至 FITS 文件中指定的绝对 HDU 编号(从 1 开始,1 表示主数组)。htype
的可能值包括:
'IMAGE_HDU' |
'ASCII_TBL' |
'BINARY_TBL' |
此函数对应于 CFITSIO 库 C API 中的 fits_move_abs_hdu
函数。
示例
import matlab.io.* fptr = fits.openFile('tst0012.fits'); n = fits.getNumHDUs(fptr); for j = 1:n htype = fits.movAbsHDU(fptr,j); fprintf('HDU %d: "%s"\n',j,htype); end fits.closeFile(fptr);