matlab.io.hdfeos.sw.periodInfo
Namespace: matlab.io.hdfeos.sw
Information about subsetted period
Syntax
[datatype,dims] = periodInfo(swathID,periodID,fieldname)
Description
[datatype,dims] = periodInfo(swathID,periodID,fieldname) retrieves
information about the period defined for the given field. datatype is
the data type of the field. dims is the dimensions
of the subsetted region.
This function corresponds to the SWperiodinfo function
in the HDF-EOS library C API, but because MATLAB® uses FORTRAN-style
ordering, the dims parameter is reversed with respect
to the C library API.
Examples
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);