ghcnd_stations: Get information on the GHCND weather stations

Description Usage Arguments Value Note References Examples

Description

This function returns an object with a dataframe with meta-information about all available GHCND weather stations.

Usage

1

Arguments

...

Additional curl options to pass through to GET.

Value

This function returns a tibble (dataframe) with a weather station on each row with the following columns:

If a weather station has data on more than one weather variable, it will be represented in multiple rows of this output dataframe.

Note

Since this function is pulling a large dataset by ftp, it may take a while to run.

References

For more documentation on the returned dataset, see http://www1.ncdc.noaa.gov/pub/data/ghcn/daily/readme.txt.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
# Get stations, ghcnd-stations and ghcnd-inventory merged
(stations <- ghcnd_stations())

library(dplyr)
# filter by state
stations %>% filter(state == "IL")
stations %>% filter(state == "OR")
# those without state values
stations %>% filter(state == "")
# filter by element
stations %>% filter(element == "PRCP")
# filter by id prefix
stations %>% filter(grepl("^AF", id))
stations %>% filter(grepl("^AFM", id))
# filter by station long name
stations %>% filter(name == "CALLATHARRA")

## End(Not run)

leighseverson/rnoaa documentation built on May 21, 2019, 3:06 a.m.