getSds: List SDS Layers in an '.HDF' File

Description Usage Arguments Value Author(s) Examples

View source: R/getSds.R

Description

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

Usage

1
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.

Author(s)

Matteo Mattiuzzi, Florian Detsch

Examples

1
2
3
4
5
## Not run: 
getSds(HdfName="/path/XXX.hdf")
# example w/'SDSstring' 

## End(Not run)

MODIS documentation built on Nov. 12, 2020, 5:06 p.m.