Learn R Programming

readmet (version 1.7.1)

dmna.grid: read (horizontal) grid definition from a file in DMNA-format

Description

Files in DMNA format contain gridded data. The header provides information on the grid definition. This function extracts the horizontal grid definition ans provides a list that may be supplied directly to function write.arcgrid. DMNA is used for example by the German national dispersion model AUSTAL.

Usage

dmna.grid(file)

Value

returns a list of character. List entries are:

xlen

number of cells in x direction

ylen

number of cells in y direction

xll

easting of the lower left (i.e. southwest) corner

yll

northing of the lower left (i.e. southwest) corner

delta

grid node spacing

Arguments

file

name (and path if necessary) of the file to read

Author

Clemens Druee

References

AUSTAL 3.1 model reference (by Ingenieurbuero Janicke)

Examples

Run this code
dmna.grid(system.file("extdata", "example-grid.dmna", package="readmet"))

Run the code above in your browser using DataLab