readCDO: Read climate station data from "Climate Data Online"

View source: R/readCDO.R

readCDOR Documentation

Read climate station data from "Climate Data Online"

Description

Read climate station data from "Climate Data Online"

Usage

readCDO(file = "", data = "HourlyGlobal", advanced = TRUE, sep = ",")

Arguments

file

The name of the file the data are to be read from.

data

The name of the data source downloaded at http://gis.ncdc.noaa.gov/map/viewer/. Currently Hourly Global ("HourlyGlobal"), Global summary of the day ("GSOD") and Global Historical Climatology Network-Daily "GHCN" are supported

advanced

logical. Indicated whether advanced download option for "HourlyGlobal" was used or not.

sep

The field separator character. Note that the separation character of the the header might differ in some cases which however can be ignored since the function will account on this.

Value

A data frame containing a representation of the data in the file.

Note

Space separated data are only supported with the options data="HourlyGlobal" and advanced==FALSE.

Author(s)

Hanna Meyer

See Also

read.table

Examples

## Not run: 
#### Example 1: Read a table of hourly global data downloaded using advanced download option

file=system.file("ClimateStationData.txt", package="Rsenal")
readCDO(file)

## End(Not run)


environmentalinformatics-marburg/Rsenal documentation built on July 28, 2023, 6:09 a.m.