Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

matlab.io.hdf4.sd

HDF4 다중 파일 과학 데이터 세트(SD) 인터페이스와 직접 상호 작용

설명

이 MATLAB® 함수를 사용하려면 HDF SD C API를 잘 알고 있어야 합니다. 대개의 경우 MATLAB 함수 구문은 상응하는 HDF 라이브러리 함수 구문과 유사합니다. 이러한 함수는 matlab.io.hdf4.sd 패키지로 구현됩니다. 이 패키지를 사용하려면 함수 이름 앞에 패키지 경로를 지정하거나, 가져오기 함수를 사용하여 현재 가져오기 목록에 패키지를 추가한 후 함수를 호출하십시오. 예를 들면 다음과 같습니다.

import matlab.io.hdf4.*
sdID = sd.start('myfile.hdf','read');

액세스

matlab.io.hdf4.sd.closeTerminate access to SD interface
matlab.io.hdf4.sd.endAccessTerminate access to dataset
matlab.io.hdf4.sd.getFilenameName of file
matlab.io.hdf4.sd.selectIdentifier of dataset with specified index
matlab.io.hdf4.sd.setExternalFileStore data in external file
matlab.io.hdf4.sd.startOpen HDF file and initialize SD interface

읽기/쓰기

matlab.io.hdf4.sd.createCreate new dataset
matlab.io.hdf4.sd.readDataRead subsample of data
matlab.io.hdf4.sd.setFillModeSet current fill mode of file
matlab.io.hdf4.sd.writeDataWrite to dataset

조회

matlab.io.hdf4.sd.fileInfoNumber of datasets and global attributes in file
matlab.io.hdf4.sd.getCompInfoInformation about dataset compression
matlab.io.hdf4.sd.getInfoInformation about dataset
matlab.io.hdf4.sd.idToRefReference number corresponding to dataset identifier
matlab.io.hdf4.sd.idTypeType of object
matlab.io.hdf4.sd.isCoordVarDetermine if dataset is a coordinate variable
matlab.io.hdf4.sd.isRecordDetermine if dataset is appendable
matlab.io.hdf4.sd.nameToIndexIndex value of named dataset
matlab.io.hdf4.sd.nameToIndicesList of datasets with same name
matlab.io.hdf4.sd.refToIndexIndex of dataset corresponding to reference number

차원

matlab.io.hdf4.sd.dimInfoInformation about dimension
matlab.io.hdf4.sd.getDimIDDimension identifier
matlab.io.hdf4.sd.getDimScaleScale data for dimension
matlab.io.hdf4.sd.setDimNameAssociate name with dimension
matlab.io.hdf4.sd.setDimScaleSet scale values for dimension

사용자 정의 특성

matlab.io.hdf4.sd.attrInfoInformation about attribute
matlab.io.hdf4.sd.findAttrIndex of specified attribute
matlab.io.hdf4.sd.readAttrRead attribute value
matlab.io.hdf4.sd.setAttrWrite attribute value

미리 정의된 특성

matlab.io.hdf4.sd.getCalDataset calibration information
matlab.io.hdf4.sd.getDataStrsPredefined attributes for dataset
matlab.io.hdf4.sd.getDimStrsPredefined attributes for dimension
matlab.io.hdf4.sd.getFillValueFill value for dataset
matlab.io.hdf4.sd.getRangeMaximum and minimum range values
matlab.io.hdf4.sd.setCalSet dataset calibration information
matlab.io.hdf4.sd.setDataStrsSet predefined attributes for dataset
matlab.io.hdf4.sd.setDimStrsSet label, unit, and format attributes
matlab.io.hdf4.sd.setFillValueSet fill value for dataset
matlab.io.hdf4.sd.setRangeSet maximum and minimum range value for dataset

청크화/타일화 작업

matlab.io.hdf4.sd.getChunkInfoChunk size for dataset
matlab.io.hdf4.sd.readChunkRead chunk from dataset
matlab.io.hdf4.sd.setChunkSet chunk size and compression method of dataset
matlab.io.hdf4.sd.writeChunkWrite chunk to dataset

압축

matlab.io.hdf4.sd.setCompressSet compression method of dataset
matlab.io.hdf4.sd.setNBitDataSetSpecify nonstandard bit length for dataset values