asu.seismo.signals.seismo
Class qfile
java.lang.Object
asu.seismo.signals.seismo.qfile
public class qfile
- extends java.lang.Object
This class contains seismogram data in Q file format.
Currently only files with 4 components are supported.
Constructor Summary |
qfile()
|
qfile(java.lang.String Filename)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
qfile
public qfile(java.lang.String Filename)
throws java.io.FileNotFoundException,
java.io.IOException,
qfileexception,
invalid_data_exception
- Throws:
java.io.FileNotFoundException
java.io.IOException
qfileexception
invalid_data_exception
qfile
public qfile()
readHeader
public void readHeader(java.lang.String Filename)
throws java.io.FileNotFoundException,
java.io.IOException,
qfileexception
- Throws:
java.io.FileNotFoundException
java.io.IOException
qfileexception
readData
public void readData(java.lang.String Filename)
throws java.io.FileNotFoundException,
java.io.IOException,
invalid_data_exception
- Throws:
java.io.FileNotFoundException
java.io.IOException
invalid_data_exception
getStartTime
public double getStartTime()
getRate
public double getRate()
getn
public int getn()
getSignal
public doubleSignal1d getSignal(int i)
get
public java.lang.String get(java.lang.String key)
getTime
public double getTime(java.lang.String key)
throws java.text.ParseException
- Throws:
java.text.ParseException
getIndex
public int getIndex(java.lang.String key)
throws java.text.ParseException
- Throws:
java.text.ParseException
getVars
public java.util.HashMap getVars()
parseTime
public static double parseTime(java.lang.String s)
throws java.text.ParseException
- Throws:
java.text.ParseException
time2index
public int time2index(double time)
index2time
public double index2time(int i)