Main Content

matlab.io.fits.getEqColType

열의 데이터형, 반복 값, 너비

구문

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

설명

[dtype,repeat,width] = getEqColType(fptr,colnum)은 ASCII 또는 Binary 테이블에 있는 열의 스케일링된 열 데이터형, 벡터 반복 값 및 너비(단위: 바이트)를 저장하는 데 필요한 동일한 데이터형을 반환합니다.

이 함수는 CFITSIO 라이브러리 C API의 fits_get_eqcoltypell (ffeqtyll) 함수에 대응합니다.

예제

두 번째 HDU의 'FLUX' 열에 대한 정보를 가져옵니다.

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

참고 항목