interpolate_grid: Interpolate a list of dplyr dataframes

Description Usage Arguments Value

View source: R/interpolating-functions.R

Description

Interpolate a list of dplyr dataframes

Usage

1
2
3
interpolate_grid(data_list, reference_df, variable, unique_id = "id_date",
  step = 0.25, coordinates_names = c("lon", "lat"),
  date_variable_name = "date")

Arguments

data_list

a list of dplyr dataframes to interpolate

reference_df

a reference dataframe containing at least the following variables: longitude, latitude, id_pixel.

variable

variable to interpolate. Character.

unique_id

unique id of the observation (usually id_date for daily observations or id_month for monthly observations). Do NOT use id_pixel. Here is why: this id should identify the a set of observations at a given time since the interpolation is done on a daily basis using the values of all the available pixels for that day. In short, the id should identify a specific time, not a specific pixel. Furthermore, the id id_pixel loses its meaning when changing the resolution of the data.

step

step (resolution) in the longitude-latitude grid. Set to 0.25 by default.

coordinates_names

names of the coordinates (longitude and latitude).

date_variable_name

name of the date variable. Character. Defaults to "date"

Value

a dplyr dataframe


pegoraro/qchlorophyll documentation built on May 24, 2019, 11:46 p.m.