extract_3DGridData: Extract 3D grid data.

Description Usage Arguments Value

View source: R/extract3DGridData.R

Description

Extract 3D grid data over a set of points.

Usage

1
extract_3DGridData(grid_coords, grid_data, points, levels, padxyz, fun_sp)

Arguments

grid_coords

A named list containing the coordinates of the grid data, with names "lon", "lat", "alt"

grid_data

A named list containing the gridded data, the 3d array data are flatten to a vector. The names of list are the names of the data.

points

A data frame of the points to extract. Data frame with column names "id", "longitude" and "latitude"

levels

A vector of the index of altitudes to be extracted in integer, or -1 to extract all available altitude

padxyz

A vector of the padding to use in number of pixels, in order "lon", "lat", "alt"

fun_sp

Character, function to be used for the padding. Options: "mean", "median", "max", "min"

Value

A named list
List of matrix of the extracted data over the set of points.
The row represents the set of points and the column for the levels.


rijaf-iri/mtorwdata documentation built on March 9, 2021, 6:36 a.m.