cdflib.hyperGetVarData
변수에서 데이터의 하이퍼슬래브(Hyperslab) 읽어 들이기
구문
data = cdflib.hyperGetVarData(cdfId,varNum,recSpec,dimSpec)
data = cdflib.hyperGetVarData(cdfId,varNum,recSpec)
설명
data = cdflib.hyperGetVarData(cdfId,varNum,recSpec,dimSpec)
은 CDF(Common Data Format) 파일에서 변수 데이터의 하이퍼슬래브(Hyperslab)를 읽습니다. 하이퍼 액세스를 통해 CDF 라이브러리에 대한 단일 호출로 두 개 이상의 값을 변수에서 읽거나 변수에 쓸 수 있습니다.
data = cdflib.hyperGetVarData(cdfId,varNum,recSpec)
은 CDF(Common Data Format) 파일에서 0차원 변수에 대한 데이터의 하이퍼슬래브(Hyperslab)를 읽습니다.
입력 인수
|
CDF 파일 ID로, |
|
데이터를 포함하는 변수를 식별하는 숫자입니다. |
|
요소를 3개 가진 배열 |
|
요소를 3개 가진 셀형 배열 |
예제
예제 CDF 파일을 연 다음 변수에 대한 모든 데이터를 가져옵니다.
cdfId = cdflib.open("example.cdf"); % Determine number of records allocated for first variable in the file maxRecNum = cdflib.getVarMaxWrittenRecNum(cdfId,0); % Retrieve all data in records for variable data = cdflib.hyperGetVarData(cdfId,0,[0 maxRecNum 1])
data = 1.0e+13 * 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146 6.3146
% Clean up cdflib.close(cdfId) clear cdfId
참고 문헌
이 함수는 CDF 라이브러리 C API 루틴 CDFhyperGetzVarData
에 대응합니다.
이 함수를 사용하려면 CDF C 인터페이스를 잘 알고 있어야 합니다. CDF 웹사이트에서 CDF 문서에 액세스할 수 있습니다.