Description Usage Arguments Details Value Author(s) References See Also Examples
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."
1 2 | downloadGSOD(startYear, endYear, stations, silent = TRUE, tries = 2, overwrite= TRUE, folder = getwd())
listFilesGSOD(startYear, endYear, stations, overwrite, folder = getwd(), clipboard = FALSE)
|
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 |
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.
listFielsGSOD returns a list of file names
Jacob van Etten
ftp://ftp.ncdc.noaa.gov/pub/data/gsod/readme.txt
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.