getSds: List SDS in a MODIS grid file

Description Usage Arguments Value Author(s) Examples

View source: R/getSds.R

Description

This function just lists the names of the SDS of a spezified MODIS grid HDF file

Usage

1
getSds(HdfName,SDSstring,method="gdal")

Arguments

HdfName

Character. File name or better filename with path (faster) to extract SDS names.

SDSstring

Character. If missing (default), the return is the list of available SDS in HdfName. If Present sequence of 1 and 0 for extracting/not extracting SDS layers. I.e.: "11101", Consult the MRT manual for detailes

method

Character. Default gdal. Caution on Windows default 'GDAL' doesn't support HDF4 files. Install 'FWTools' or use method=mrt instead.

Value

List or character. If SDSstring is provided the function reports extracted SDS and a formatted SDSsting. If not provided the SDS names in HdfName are plotted.

Author(s)

Matteo Mattiuzzi

Examples

1
2
3
4
5
6
## Not run: 
getSds(HdfName="XXX.hdf")
getSds(HdfName="/path/XXX.hdf",method="gdal") # require GDAL (FWTools on Windows)
getSds(HdfName="/path/XXX.hdf",method="mrt") # require MRTool

## End(Not run)

MODIS documentation built on May 2, 2019, 6:09 p.m.

Related to getSds in MODIS...