edu.sc.seis.fissuresUtil.sac
Class FissuresToSac

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

public class FissuresToSac
extends java.lang.Object

FissuresToSac.java Created: Wed Apr 10 10:52:00 2002


Constructor Summary
FissuresToSac()
           
 
Method Summary
static void addChannel(SacHeader header, Channel channel)
          Adds the Channel information, including station location and channel orientation to the sac object.
static void addOrigin(SacHeader header, Origin origin)
          Adds origin informtion to the sac object, including the o marker.
static SacPoleZero getPoleZero(Response response)
           
static SacTimeSeries getSAC(LocalSeismogramImpl seis)
          Creates a SacTimeSeries object from a LocalSeismogram.
static SacTimeSeries getSAC(LocalSeismogramImpl seis, Channel channel)
          Creates a SacTimeSeries object from a LocalSeismogram.
static SacTimeSeries getSAC(LocalSeismogramImpl seis, Channel channel, Origin origin)
          Creates a SacTimeSeries object from a LocalSeismogram.
static SacTimeSeries getSAC(LocalSeismogramImpl seis, Origin origin)
          Creates a SacTimeSeries object from a LocalSeismogram.
static void setKZTime(SacHeader header, MicroSecondDate date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FissuresToSac

public FissuresToSac()
Method Detail

getSAC

public static SacTimeSeries getSAC(LocalSeismogramImpl seis)
                            throws CodecException
Creates a SacTimeSeries object from a LocalSeismogram. Headers in the SAC object are filled in as much as possible, with the notable exception of event information and station location and channel orientation.

Parameters:
seis - the LocalSeismogramImpl with the data
Returns:
a SacTimeSeries with data and headers filled
Throws:
CodecException

getSAC

public static SacTimeSeries getSAC(LocalSeismogramImpl seis,
                                   Channel channel)
                            throws CodecException
Creates a SacTimeSeries object from a LocalSeismogram. Headers in the SAC object are filled in as much as possible, with the notable exception of event information.

Parameters:
seis - a LocalSeismogramImpl value
channel - a Channel value
Returns:
a SacTimeSeries value
Throws:
CodecException

getSAC

public static SacTimeSeries getSAC(LocalSeismogramImpl seis,
                                   Origin origin)
                            throws CodecException
Creates a SacTimeSeries object from a LocalSeismogram. Headers in the SAC object are filled in as much as possible, with the notable exception of station location and channel orientation information.

Parameters:
seis - a LocalSeismogramImpl value
origin - an Origin value
Returns:
a SacTimeSeries value
Throws:
CodecException

getSAC

public static SacTimeSeries getSAC(LocalSeismogramImpl seis,
                                   Channel channel,
                                   Origin origin)
                            throws CodecException
Creates a SacTimeSeries object from a LocalSeismogram. Headers in the SAC object are filled in as much as possible.

Parameters:
seis - a LocalSeismogramImpl value
channel - a Channel value
origin - an Origin value
Returns:
a SacTimeSeries value
Throws:
CodecException

addChannel

public static void addChannel(SacHeader header,
                              Channel channel)
Adds the Channel information, including station location and channel orientation to the sac object.

Parameters:
sac - a SacTimeSeries object to be modified
channel - a Channel

addOrigin

public static void addOrigin(SacHeader header,
                             Origin origin)
Adds origin informtion to the sac object, including the o marker.

Parameters:
sac - a SacTimeSeries object to be modified
origin - an Origin value

setKZTime

public static void setKZTime(SacHeader header,
                             MicroSecondDate date)

getPoleZero

public static SacPoleZero getPoleZero(Response response)
                               throws InvalidResponse
Throws:
InvalidResponse