Learn R Programming

meteoland (version 2.2.2)

create_meteo_interpolator: Meteoland interpolator creation

Description

Function to create the meteoland interpolator

Usage

create_meteo_interpolator(
  meteo_with_topo,
  params = NULL,
  verbose = getOption("meteoland_verbosity", TRUE)
)

Value

an interpolator object (stars)

Arguments

meteo_with_topo

Meteo object, as returned by with_meteo

params

Interpolation parameters as a list. Typically the result of defaultInterpolationParams.

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)

Author

Victor Granda García, EMF-CREAF

Miquel De Cáceres Ainsa, EMF-CREAF

Details

This function takes meteorology information and a list of interpolation parameters and creates the interpolator object to be ready to use.

See Also

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

Examples

Run this code

# example meteo data
data(meteoland_meteo_example)

# create the interpolator with default params
with_meteo(meteoland_meteo_example) |>
  create_meteo_interpolator()

# create the interpolator with some params changed
with_meteo(meteoland_meteo_example) |>
  create_meteo_interpolator(params = list(debug = TRUE))

Run the code above in your browser using DataLab