parse.pde: Parse PDE file

View source: R/parse.pde.R

parse.pdeR Documentation

Parse PDE file

Description

Parse and Extact information from a screen dump of PDE (preliminary earthquake estimates) from the internet,

Usage

parse.pde(card)

Arguments

card

character, one line from the PDE file

Details

Parsing is done by column specification. Uses screen dump format. see http://neic.usgs.gov/neis/epic/epic.html

Value

Time, Location and Magnitude: list(yr, jd, mo, dom, hr, mi, sec, lat, lon, depth, z, mag)

Note

May try using the CSV version of the dump.

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

References

http://neic.usgs.gov/neis/epic/epic.html

See Also

getPDEcsv, getPDEscreen

Examples

######  copy/paste  from the screen dump at the NEIC web site


K = c(
' PDE-Q  2008  12 31 053408.80  40.11  -77.00   1  2.4 LgGS    ... ....... ',      
' PDE-Q  2008  12 31 084757.50  46.75  154.41  14  4.9 mbGS    ... ....... ')      

G = parse.pde(K[1])


RSEIS documentation built on Sept. 13, 2024, 1:09 a.m.