read.psmsl {sealevel} | R Documentation |
This function reads a dataset from PSMSL and returns a list of records with data from each station.
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
# 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)