matlab.io.fits.getColType
스케일링된 열의 데이터형, 반복 값, 너비
구문
[dtype,repeat,width] = getColType(fptr,colnum)
설명
[dtype,repeat,width] = getColType(fptr,colnum)
은 ASCII 또는 Binary 테이블에 포함된 열의 데이터형, 벡터 반복 값 및 너비(단위: 바이트)를 반환합니다.
이 함수는 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);