Learn R Programming

RSEIS (version 4.2-4)

parse.pde: Parse PDE file

Description

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

Usage

parse.pde(card)

Value

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

Arguments

card

character, one line from the PDE file

Author

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

Details

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

References

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

See Also

getPDEcsv, getPDEscreen

Examples

Run this code
######  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])

Run the code above in your browser using DataLab