read.TIN: Function to read a TIN from a CHILD file set.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/read.TIN.R

Description

This function reads the nodes- and z-files from a CHILD model run data returns a matrix with m nodes and their x-y-z-coordinates for a specified set and time step of the model run.

Usage

1
read.TIN(dataset, timestep)

Arguments

dataset

CHILD object name.

timestep

Time step from which the node data is read.

Details

The resulting data set is no triangulated irregular network (TIN) object. It is similar in structure to the PTS-file but without boundary flags. However, the data set can serve as input data for a raster interpolation (TIN.raster) or external TIN creation (e.g. tri.mesh from package tripack).

Value

A numeric matrix with x-y-z-coordinates of the nodes.

Author(s)

Michael Dietze

References

CSDMS website. http://csdms.colorado.edu/wiki/Model:CHILD.
Tucker, GE. 2010. CHILD Users Guide for version R9.4.1. http://csdms.colorado.edu/mediawiki/images/Child_users_guide.pdf
Tucker, GE., Lancaster, ST., Gasparini, NM., Bras, RL. 2001. The Channel-Hillslope Integrated Landscape Development (CHILD) Model. In Harmon, RS., Doe, W.W. III (eds). Landscape Erosion and Evolution Modeling. Kluwer Academic/Plenum Publishers, pp. 349-388.

See Also

TIN.raster

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# load example data set
data(hillslope1)

# read TIN from time step 10 of data set hillslope1
TIN <- read.TIN(hillslope1, timestep = 10)

# show first 5 rows of the dat set
TIN[1:5,]

# display the modelled surface and add TIN nodes
display.surface(hillslope1, timestep = 10, type = "map")
points(TIN[,1], TIN[,2], pch = 4, cex = 0.5)

coffeemuggler/RCHILD documentation built on Dec. 31, 2020, 10:05 p.m.