MODIS (version 1.2.2)

getSds: List SDS Layers in an .HDF File

Description

List the names of all scientific datasets (SDS) contained in a specified MODIS grid HDF file.

Usage

getSds(HdfName, SDSstring = NULL, ...)

Arguments

HdfName

character. (Absolute) filename from which to extract SDS names. Non-existing files are being looked up recursively in getOption("MODIS_localArcPath").

SDSstring

An optional character string of 1s and 0s, see Value.

...

Currently not used.

Value

A list. If SDSstring is provided, the function reports matching SDS and a formatted 'SDSstring' (e.g., "1 1 1 0 1"). If omitted, the names of all SDS in 'HdfName' are returned.

Examples

Run this code
# NOT RUN {
getSds(HdfName="/path/XXX.hdf")
# example w/'SDSstring' 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab