read.psmsl: Read PSMSL sealevel dataset.

Description Usage Arguments Details Value Warning Author(s) References See Also Examples

Description

This function reads a dataset from PSMSL and returns a list of records with data from each station.

Usage

1
read.psmsl(description="rlr_monthly.zip")

Arguments

description

the filename of the psmsl file, should be named something like code_period.zip

Details

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.

Value

stations

A list of stations with sea level data

Warning

The station data is return as a list of lists. This will change in the future.

Author(s)

Fedor Baart

References

http://www.psmsl.org/data/obtaining/psmsl.hel

See Also

get.psmsl.url

Examples

 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)

sealevel documentation built on May 2, 2019, 6:51 p.m.