Description Usage Arguments Details Value Warning Author(s) References See Also Examples
This function reads a dataset from PSMSL and returns a list of records with data from each station.
1 | read.psmsl(description="rlr_monthly.zip")
|
description |
the filename of the psmsl file, should be named something like code_period.zip |
The returned stations is a list of stations. These contain the raw elements from the file. See the documentation in the references for details about the elements.
stations |
A list of stations with sea level data |
The station data is return as a list of lists. This will change in the future.
Fedor Baart
http://www.psmsl.org/data/obtaining/psmsl.hel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # look up the url
psmslurl <- get.psmsl.url(type="annual")
# store it localy (can't read zip files from the web)
path <- basename(psmslurl)
# download it
download.file(psmslurl, path)
## Not run:
# this takes a while on slow machines
# read it
stations <- read.psmsl(path)
## End(Not run)
# and clean up
unlink(path)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.