isd_read: Read NOAA ISD/ISH local file

View source: R/isd_read.R

isd_readR Documentation

Read NOAA ISD/ISH local file

Description

Read NOAA ISD/ISH local file

Usage

isd_read(
  path,
  additional = TRUE,
  parallel = FALSE,
  cores = getOption("cl.cores", 2),
  progress = FALSE
)

Arguments

path

(character) path to the file. required.

additional

(logical) include additional and remarks data sections in output. Default: TRUE. Passed on to isdparser::isd_parse()

parallel

(logical) do processing in parallel. Default: FALSE

cores

(integer) number of cores to use: Default: 2. We look in your option "cl.cores", but use default value if not found.

progress

(logical) print progress - ignored if parallel=TRUE. The default is FALSE because printing progress adds a small bit of time, so if processing time is important, then keep as FALSE

Details

isd_read - read a .gz file as downloaded from NOAA's website

Value

A tibble (data.frame)

References

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

See Also

isd(), isd_stations(), isd_stations_search()

Other isd: isd_stations_search(), isd_stations(), isd()

Examples

## Not run: 
file <- system.file("examples", "011490-99999-1986.gz", package = "rnoaa")
isd_read(file)
isd_read(file, additional = FALSE)

## End(Not run)

rnoaa documentation built on April 27, 2023, 9:08 a.m.