Main Content

matlab.io.hdfeos.sw.periodInfo

네임스페이스: matlab.io.hdfeos.sw

서브셋 설정된 기간(Subsetted Period)에 대한 정보

구문

[datatype,dims] = periodInfo(swathID,periodID,fieldname)

설명

[datatype,dims] = periodInfo(swathID,periodID,fieldname)은 지정된 필드에 대해 정의된 기간에 대한 정보를 가져옵니다. datatype은 필드의 데이터형입니다. dims는 서브셋 설정된 영역의 차원입니다.

이 함수는 HDF-EOS 라이브러리 C API의 SWperiodinfo 함수에 대응합니다. 그러나 MATLAB®은 FORTRAN 스타일의 정렬을 사용하므로 dims 파라미터는 C 라이브러리 API에 맞게 순서가 뒤바뀝니다.

예제

import matlab.io.hdfeos.*
swfid = sw.open('swath.hdf');
swathID = sw.attach(swfid,'Example Swath');
starttime =  25;
stoptime = 425;
periodID = sw.defTimePeriod(swathID,starttime,stoptime,'MIDPOINT');
[ntype,dims] = sw.periodInfo(swathID,periodID,'Temperature');
sw.detach(swathID);
sw.close(swfid);