cdflib.getVarAllocRecords
변수에 할당된 레코드의 개수
구문
numrecs = cdflib.getVarAllocRecords(cdfId, varNum)
설명
numrecs = cdflib.getVarAllocRecords(cdfId, varNum)
은 CDF(Common Data Format) 파일의 변수에 할당된 레코드의 개수를 반환합니다.
cdfId
는 CDF 파일을 식별합니다. varNum
은 변수를 식별하는 숫자형 값입니다. 변수 번호는 0부터 시작합니다.
예제
예제 CDF를 열고 변수에 할당된 레코드의 개수를 가져옵니다.
cdfId = cdflib.open("example.cdf"); % Find number of records allocated for first variable in the file numrecs = cdflib.getVarAllocRecords(cdfId,0)
numrecs = 64
% Clean up cdflib.close(cdfId) clear cdfId
참고 문헌
이 함수는 CDF 라이브러리 C API 루틴 CDFgetzVarAllocRecords
에 대응합니다.
이 함수를 사용하려면 CDF C 인터페이스를 잘 알고 있어야 합니다. CDF 웹사이트에서 CDF 문서에 액세스할 수 있습니다.