Learn R Programming

meteoland (version 2.2.2)

add_topo: Add topography data to meteo object

Description

Add topography data to meteo object

Usage

add_topo(meteo, topo, verbose = getOption("meteoland_verbosity", TRUE))

Value

meteo with the topography info added

Arguments

meteo

meteo object

topo

topo object

verbose

Logical indicating if the function must show messages and info. Default value checks "meteoland_verbosity" option and if not set, defaults to TRUE. It can be turned off for the function with FALSE, or session wide with options(meteoland_verbosity = FALSE)

Details

When using meteo data without topography info to create an interpolator, topography must be added

See Also

Other interpolator functions: create_meteo_interpolator(), get_interpolation_params(), read_interpolator(), set_interpolation_params(), with_meteo(), write_interpolator()

Examples

Run this code
# example meteo
data(meteoland_meteo_no_topo_example)
# example topo
data(meteoland_topo_example)
# add topo
with_meteo(meteoland_meteo_no_topo_example) |>
  add_topo(meteoland_topo_example)

Run the code above in your browser using DataLab