indistance_var: Select the data within a distance of a point

View source: R/poly_functions.R

indistance_varR Documentation

Select the data within a distance of a point

Description

Select the data that is located within a certain distance of a specified geographic coordinate.

Usage

indistance_var(var_list, lon, lat, dist = 5000)

Arguments

var_list

list containing the variables extracted from read_nc or load_var

lon

longitude coordinate of the point

lat

latitude coordinate of the point

dist

distance, in meter, of the coordinates to keep the data. default is 5000 meters

Value

var_list containing the variables, coordinates and metadata of the selected data

Examples

## Not run: masked_list = indistance_polygon(var_list, lon=-65, lat=49, dist=15000)

BSt-Denis/gslcoenv documentation built on Feb. 10, 2023, 7:53 a.m.