Learn R Programming

RSEIS (version 2.1-6)

ReadSet.Instr: Read Instrument Response file

Description

Read in an instrument response file, or

Usage

ReadSet.Instr(file)

Arguments

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

Value

  • list:
  • npNUmber of poles
  • polescomplex vector of poles
  • nznumber of zeros
  • zeroscomplex vector of zeros
  • Knormnormalization factor
  • Sensesensitivity factor

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.

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)

RL28 = ReadSet.Instr('/pathto/Equipment/Sensors/L28.inst.response')

Run the code above in your browser using DataLab