Description Usage Arguments Details Value Examples
Initialises a project for 2-dimensional hydrodynamic modelling with TELEMAC-2D.
1 2 3 4 |
title |
|
wdir |
|
cas |
Passed to |
geo |
Passed to |
cli |
Passed to |
res |
Passed to |
opt |
Object of class |
exec |
|
x |
An object of class |
... |
Optional arguments passed to |
First, make sure TELEMAC-2D is installed and works!
An object of class t2d
, that is a list with elements title
,
wdir
, exec
, cas
, geo
, cli
, res
, and opt
.
The latter five are objects of type t2d_*
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(sf)
library(raster)
# template setup with example data
bnd <- st_read(system.file("dem/boundary_lagos.gpkg", package = "telemac"))
dem_rast <- raster(system.file("dem/dem_merit_lagos.tif", package = "telemac"))
tin_obj <- tin(list(boundary = bnd), s = 90, a = 100^2, q = 30)
geo_obj <- geo(tin_obj, dem = dem_rast)
cli_obj <- cli(geo_obj)
cas_obj <- cas()
# TELEMAC-2D setup
t2d_obj <- t2d("Test setup", "path/to/wdir",
cas = cas_obj, geo = geo_obj, cli = cli_obj)
t2d_obj
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.