Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_NOAA_stations_nearXY

Query the NOAA API to get station data near a given latitude and longitude


Description

Query the NOAA API to get station data (limit 1000 records) near a point. Default extent is plus or minus 0.5 degrees (bounding box) (with bbox = 1) around the specified point [lat, lng].

In order to use this function, you must obtain an API token from this website: https://www.ncdc.noaa.gov/cdo-web/token

Usage

get_NOAA_stations_nearXY(lat, lng, apitoken, bbox = 1)

Arguments

lat

Latitude

lng

Longitude

apitoken

API key token for NOAA NCDC web service

bbox

Optional: Dimension of the bounding box centered at lat, lng.

Value

data.frame containing station information for all stations within a bounding box around lat, lng.

Examples

## in order to use this function, you must obtain an API token from this website:
##  https://www.ncdc.noaa.gov/cdo-web/token

# stations <- get_NOAA_stations_nearXY(lat = 37, lng = -120,
#                                      apitoken = "yourtokenhere")

soilDB

Soil Database Interface

v2.6.1
GPL (>= 3)
Authors
Dylan Beaudette [aut], Jay Skovlin [aut], Stephen Roecker [aut], Andrew Brown [aut, cre]
Initial release
2021-04-7

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.