Main Content

matlab.io.fits.movAbsHDU

절대 HDU 번호로 이동

구문

htype = fits.movAbsHDU(fptr,HDUNUM)

설명

htype = fits.movAbsHDU(fptr,HDUNUM)은 FITS 파일 내의 지정된 절대 HDU 번호로 이동합니다. 절대 HDU 번호는 주 배열(Primary Array)의 경우 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);

참고 항목

| |