Download Global Summary of Day data

Description

Download GSOD data, created by the NCDC.

Users of these data should take into account the following (from the NCDC website):

"The following data and products may have conditions placed on their international commercial use. They can be used within the U.S. or for non-commercial international activities without restriction. The non-U.S. data cannot be redistributed for commercial purposes. Re-distribution of these data by others must provide this same notification."

Usage

1
2
downloadGSOD(startYear, endYear, stations, silent = TRUE, tries = 2, overwrite= TRUE, folder = getwd())
listFilesGSOD(startYear, endYear, stations, overwrite, folder = getwd(), clipboard = FALSE)

Arguments

startYear

first year to download

endYear

last year to download

stations

(subsetted) table with stations to download

silent

report progress or not (default is FALSE)

tries

number of times to retry when download of a particular station-year file fails (default is 2)

overwrite

whether files in the folder should be overwritten with files having the same name

folder

local directory to which the downloaded data should be written (default is the working directory)

clipboard

should the file names be written to the clipboard? can fail due to memory limitations of clipboard

Details

The function downloadGSOD downloads the data by station-year file for the specified time period and stations.

listFilesGSOD provides a vector of file names, which could be used with a downloading programme or plug-in. listFilesGSOD creates a batch file that can be loaded into a download manager. For instance, use Free Download Manager. http://www.freedownloadmanager.org/ Click [File] - [Import] - [Import list of downloads] to upload the text file created with listFilesGSOD(). You will probably need to fiddle a bit with the settings of FDM to make it work smoothly.

Value

listFielsGSOD returns a list of file names

Author(s)

Jacob van Etten

References

ftp://ftp.ncdc.noaa.gov/pub/data/gsod/readme.txt

See Also

makeTableGSOD

Examples

1
2
3
data(stations)
stations <- stations[1:30,]
listFilesGSOD(2000, 2001, stations, folder = NULL, clipboard = FALSE)