isd_stations: Get NOAA ISD/ISH station data from NOAA FTP server.

Description Usage Arguments Details Value File storage References See Also Examples

View source: R/isd_stations.R

Description

Get NOAA ISD/ISH station data from NOAA FTP server.

Usage

1
isd_stations(refresh = FALSE, ...)

Arguments

refresh

(logical) Download station data from NOAA ftp server again. Default: FALSE

...

Curl options passed on to GET

Details

The data table is cached, but you can force download of data from NOAA by setting refresh=TRUE

Value

a tibble (data.frame) with the columns:

File storage

We use rappdirs to store files, see user_cache_dir for how we determine the directory on your machine to save files to, and run rappdirs::user_cache_dir("rnoaa") to get that directory.

References

ftp://ftp.ncdc.noaa.gov/pub/data/noaa/

See Also

Other isd: isd_read, isd_stations_search, isd

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
# Get station table
(stations <- isd_stations())

## plot stations
### remove incomplete cases, those at 0,0
df <- stations[complete.cases(stations$lat, stations$lon), ]
df <- df[df$lat != 0, ]
### make plot
library("leaflet")
leaflet(data = df) %>%
  addTiles() %>%
  addCircles()

## End(Not run)

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