asu.seismo.signals.seismo
Class qfile

java.lang.Object
  extended by 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)
           
 
Method Summary
 java.lang.String get(java.lang.String key)
           
 int getIndex(java.lang.String key)
           
 int getn()
           
 double getRate()
           
 doubleSignal1d getSignal(int i)
           
 double getStartTime()
           
 double getTime(java.lang.String key)
           
 java.util.HashMap getVars()
           
 double index2time(int i)
           
static double parseTime(java.lang.String s)
           
 void readData(java.lang.String Filename)
           
 void readHeader(java.lang.String Filename)
           
 int time2index(double time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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()
Method Detail

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)