eqcat: Check earthquake catalog

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

View source: R/eqcat.R

Description

Preliminary check of the names of an earthquake catalog. summary and plot methods for earthquake catalogs.

Usage

1
2
3
4
5
eqcat(x)
## S3 method for class 'eqcat'
plot(x,...)
## S3 method for class 'eqcat'
summary(object,extended=TRUE,...)

Arguments

x

an earthquake catalog.

object

an eqcat object.

extended

if TRUE some extra summary functions are computed.

...

other arguments.

Details

Minimal check of an earthquake catalog; checks only if it is suitable for the use as argument of the functions of etasFLP (mainly etasclass); checks only the presence of variables with the names time, lat, long, z, magn1. summary and plot methods are defined for earthquake catalogs.

Value

If the catalog passes the check, then the catalog is returned with the new class name eqcat; otherwise an error message is printed.

cat

a catalog is returned. If the check is ok, this is an eqcat class object.

ok

A flag: TRUE if the check is ok; FALSE elsewhere.

Note

In this first version if you have a catalog without the depth (z), please insert however a constant column. The depth can be used only in some plot and not in the estimation routines of the package etasFLP; etasclass uses only time, lat, long, magn1.

Author(s)

Marcello Chiodi

See Also

etasclass

Examples

1
2
3

etasFLP documentation built on May 1, 2019, 6:48 p.m.