create_meteo_interpolator {meteoland}R Documentation

Meteoland interpolator creation

Description

Function to create the meteoland interpolator

Usage

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

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)

Details

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

Value

an interpolator object (stars)

Author(s)

Victor Granda García, EMF-CREAF

Miquel De Cáceres Ainsa, EMF-CREAF

See Also

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

Examples


# 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))


[Package meteoland version 2.2.1 Index]