SRTM.read: Read SRTM .hgt files

Description Usage Arguments Details Value Author(s) See Also

View source: R/SRTM.r

Description

This function reads SRTM .hgt files and outputs a RasterLayer obejct or a data.frame (not recommended).

Usage

1

Arguments

files

a vector of character strings indicating the file names to be read

as.data.frame

boolean, if TRUE output a data.frame

Details

The SRTM1 has 3601\times 3601 cells, and SRTM3 has 1201\times 1201 cells. It is thus not recommened to convert the output into a data.frame. Moreover, the RasterLayer object is easier to work with using the raster package.

Value

A RasterLayer object or a data.frame

Author(s)

D. Yang

See Also

SRTM.list, SRTM.get


dazhiyang/SolarData documentation built on Aug. 14, 2018, 10:59 a.m.