PFoutput {Rquake}R Documentation

Write a pickfile to disk

Description

Write a pickfile to disk, after updating the earthquake location, in a variety of formats.

Usage

PFoutput(PF, stas = NULL, sol = NULL, format = 0, destdir=NULL)

Arguments

PF

Pickfile list from RSEIS

stas

station list

sol

solution vector, (lat, lon, z, t0)

format

integer, 0=all formats, 1=native R, 2=UW, 3=csv)

destdir

character, full path to destination directory, default=NULL )

Details

Writes files to disk in local directory.

Value

Side effects: writes files to user's disk

Note

The destdir (destination directory) must be provided for the file to be save properly.

Creates a file name and writes to disk in a variety of formats.

A destdir that is NULL will result in writing to a temporary file.

Author(s)

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

See Also

SavePF, RSEIS

Examples


data(GH, package='RSEIS')
g1 = GH$pickfile

####  saves pick files to disk 
PFoutput(g1, stas = NULL, sol = NULL, format = 1, destdir=tempdir() )

PFoutput(g1, stas = NULL, sol = NULL, format = 2, destdir=tempdir() )

PFoutput(g1, stas = NULL, sol = NULL, format = 3, destdir=tempdir() )

PFoutput(g1, stas = NULL, sol = NULL, format = 0, destdir=tempdir() )





[Package Rquake version 2.5-1 Index]