Learn R Programming

RSEIS (version 4.2-4)

ReadSet.Instr: Read Instrument Response file

Description

Read in an instrument response file, or

Usage

ReadSet.Instr(file)

Value

list:

np

Number of poles

poles

complex vector of poles

nz

number of zeros

zeros

complex vector of zeros

Knorm

normalization factor

Sense

sensitivity factor

Arguments

file

name of file to read, or vector of character strings from the file

Author

Jonathan M. Lees<jonathan.lees.edu>

Details

If file is a path to a file it is read in and processed. If file is a vector of character strings from a file that has already been read in, the file is processed directly. The tag names (ZEROS, POLES, SENSE, CONSTANT) can be upper,lower or mixed case. Alternative to SENSE = sensitivity, and CONSTANT=norm or knorm.

Examples

Run this code
###  in this case a file has already been read in:
CMG <- c(
      "ZEROS 2",
      "0.0000E+00 0.0000E+00",
      "0.0000E+00 0.0000E+00",
      "POLES 3",
      "-0.1480E+00 0.1480E+00",
      "-0.1480E+00 -0.1480E+00",
      "-50.0 0.0",
      "CONSTANT 1.0",
      "SENSE 800")

ReadSet.Instr(CMG)

Run the code above in your browser using DataLab