get_station_info: Get Mesonet Station Info

Description Usage Arguments Value Examples

Description

The first step for getting weather data for a location is to find which weather stations are closest to that location. This function will return a dataframe of Mesonet weather stations that are within some number of decimal degrees of some dataframe containing latitudes and longitudes that you provide.

Usage

1
get_station_info(df, decdegrees = 0.1, loc_key = "Location_code")

Arguments

df

A dataframe or tbl_df object that contains columns 'Latitude' and 'Longitude', and some grouping column to specify distinct locations.

decdegrees

The distance, in decimal degrees,

loc_key

The name of the grouping column that specifies distinct locations in the dataframe.

Value

a dataframe containing details for all Mesonet stations that are within some number of decimal degrees of the latitudes and longitudes in your input dataset.

Examples

1
2
3
4
    ## Not run: get_station_info(df = bean_data, loc_key = "Location_code")
    ## Not run: get_station_info(df = bean_data, decdegrees = 0.5,
    loc_key = "Location_code")
## End(Not run)

Alice-MacQueen/USweather documentation built on June 12, 2019, 12:33 a.m.