edu.sc.seis.fissuresUtil.sac
Class SacToFissures

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.sac.SacToFissures

public class SacToFissures
extends java.lang.Object

SacToFissures.java Created: Thu Mar 2 13:48:26 2000


Constructor Summary
SacToFissures()
           
 
Method Summary
static ChannelImpl getChannel(SacHeader header)
           
static ChannelImpl getChannel(SacTimeSeries sac)
           
static ChannelId getChannelId(SacHeader header)
           
static ChannelId getChannelId(SacHeader header, java.lang.String siteCode)
           
static ChannelId getChannelId(SacTimeSeries sac)
           
static ChannelId getChannelId(SacTimeSeries sac, java.lang.String siteCode)
           
static CacheEvent getEvent(SacHeader header)
           
static CacheEvent getEvent(SacTimeSeries sac)
           
static MicroSecondDate getEventOriginTime(SacHeader header)
           
static MicroSecondDate getEventOriginTime(SacTimeSeries sac)
          calculates the event origin time from the sac headers O, NZYEAR, NZJDAY, NZHOUR, NZMIN, NZSEC, NZMSEC.
static MicroSecondDate getNZTime(SacHeader header)
          calculates the reference (NZ) time from the sac headers NZYEAR, NZJDAY, NZHOUR, NZMIN, NZSEC, NZMSEC.
static MicroSecondDate getNZTime(SacTimeSeries sac)
          calculates the reference (NZ) time from the sac headers NZYEAR, NZJDAY, NZHOUR, NZMIN, NZSEC, NZMSEC.
static LocalSeismogramImpl getSeismogram(java.io.File sacFile)
           
static LocalSeismogramImpl getSeismogram(java.io.InputStream in)
           
static LocalSeismogramImpl getSeismogram(SacTimeSeries sac)
           
static LocalSeismogramImpl getSeismogram(SacTimeSeries sac, SeismogramAttr attr)
          Gets a LocalSeismogram.
static SeismogramAttrImpl getSeismogramAttr(SacTimeSeries sac)
           
static MicroSecondDate getSeismogramBeginTime(SacHeader header)
          calculates the seismogram begin time from the sac headers B, NZYEAR, NZJDAY, NZHOUR, NZMIN, NZSEC, NZMSEC.
static MicroSecondDate getSeismogramBeginTime(SacTimeSeries sac)
          calculates the seismogram begin time from the sac headers B, NZYEAR, NZJDAY, NZHOUR, NZMIN, NZSEC, NZMSEC.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SacToFissures

public SacToFissures()
Method Detail

getSeismogram

public static LocalSeismogramImpl getSeismogram(java.io.File sacFile)
                                         throws java.io.FileNotFoundException,
                                                java.io.IOException,
                                                FissuresException
Throws:
java.io.FileNotFoundException
java.io.IOException
FissuresException

getSeismogram

public static LocalSeismogramImpl getSeismogram(java.io.InputStream in)
                                         throws java.io.IOException,
                                                FissuresException
Throws:
java.io.IOException
FissuresException

getSeismogram

public static LocalSeismogramImpl getSeismogram(SacTimeSeries sac,
                                                SeismogramAttr attr)
                                         throws FissuresException
Gets a LocalSeismogram. The data comes from the sac file, while the SeismogramAttr comes from attr. A check is made on the beginTime, numPoints and sampling and the sac file is considered correct for these three.

Throws:
FissuresException

getSeismogram

public static LocalSeismogramImpl getSeismogram(SacTimeSeries sac)
                                         throws FissuresException
Throws:
FissuresException

getSeismogramAttr

public static SeismogramAttrImpl getSeismogramAttr(SacTimeSeries sac)
                                            throws FissuresException
Throws:
FissuresException

getChannelId

public static ChannelId getChannelId(SacTimeSeries sac)

getChannelId

public static ChannelId getChannelId(SacHeader header)

getChannelId

public static ChannelId getChannelId(SacTimeSeries sac,
                                     java.lang.String siteCode)

getChannelId

public static ChannelId getChannelId(SacHeader header,
                                     java.lang.String siteCode)

getChannel

public static ChannelImpl getChannel(SacTimeSeries sac)

getChannel

public static ChannelImpl getChannel(SacHeader header)

getNZTime

public static MicroSecondDate getNZTime(SacTimeSeries sac)
calculates the reference (NZ) time from the sac headers NZYEAR, NZJDAY, NZHOUR, NZMIN, NZSEC, NZMSEC. If any of these are UNDEF (-12345), then ClockUtil.wayPast


getNZTime

public static MicroSecondDate getNZTime(SacHeader header)
calculates the reference (NZ) time from the sac headers NZYEAR, NZJDAY, NZHOUR, NZMIN, NZSEC, NZMSEC. If any of these are UNDEF (-12345), then ClockUtil.wayPast


getEventOriginTime

public static MicroSecondDate getEventOriginTime(SacTimeSeries sac)
calculates the event origin time from the sac headers O, NZYEAR, NZJDAY, NZHOUR, NZMIN, NZSEC, NZMSEC.


getEventOriginTime

public static MicroSecondDate getEventOriginTime(SacHeader header)

getSeismogramBeginTime

public static MicroSecondDate getSeismogramBeginTime(SacTimeSeries sac)
calculates the seismogram begin time from the sac headers B, NZYEAR, NZJDAY, NZHOUR, NZMIN, NZSEC, NZMSEC.


getSeismogramBeginTime

public static MicroSecondDate getSeismogramBeginTime(SacHeader header)
calculates the seismogram begin time from the sac headers B, NZYEAR, NZJDAY, NZHOUR, NZMIN, NZSEC, NZMSEC.


getEvent

public static CacheEvent getEvent(SacTimeSeries sac)

getEvent

public static CacheEvent getEvent(SacHeader header)