read.hdr: Read an HDR file

View source: R/read.hdr.r

read.hdrR Documentation

Read an HDR file

Description

Read an HDR file which is the header part of a BIL raster file

Usage

read.hdr(file, add.nblocks = TRUE, bandorder = NULL, noValue = NULL)

Arguments

file

character string. Filename of the file to be read.

add.nblocks

logical. Should the agrument nblocks be added to the output? See details.

bandorder

character string or NULL. If NULL no changes in the parameter layout are made, else the string of bandorder is used in the hdr file for the parameter layout.

noValue

numerical or NULL. Sets the noValue argument in the hdr file.

Details

If add.nblocks is TRUE (the default) then the argument nblocks is added to the output list (if it does nikt already exist). If so, the value from the argument nbands is copied to nblocks and nbands is set to 1. This is because of handling in Delft-FEWS. See the wiki of Delft-FEWS: (https://publicwiki.deltares.nl/display/FEWSDOC/BIL+BIP+BSQ+Parser).

Value

a data.frame containing the arguments of the hdr file

Author(s)

Simon Frey


freysimon/ZAMGR documentation built on Nov. 3, 2023, 9:44 p.m.