get_station: get the closest climate station id based on physical station...

View source: R/get_station.R

get_stationR Documentation

get the closest climate station id based on physical station network or grid cell index

Description

get the closest climate station id based on physical station network or grid cell index

Usage

get_station(
  latitude,
  longitude,
  data = agroenv::station_index,
  network,
  n = 1,
  ...
)

Arguments

latitude

latitude of the geographical location in decimal degrees (WGS84)

longitude

logitude of the geographical location in decimal degrees (WGS84)

data

list of dataframes containing stations or grid cell coordinates

network

string of the stations network or gridded data to use

n

number of results to return

...

additional arguments for use with pmap

Value

a dataframe of station(s) or grid cell closest to the geographical location

Examples


get_station(43.5279, 1.5009, network="climbox", n=5)


picasa/agroenv documentation built on Nov. 17, 2022, 3:05 a.m.