edu.sc.seis.seisFile.winston
Class TraceBuf2

java.lang.Object
  extended by edu.sc.seis.seisFile.winston.TraceBuf2

public class TraceBuf2
extends java.lang.Object


Field Summary
static int AMPLIFIER_SATURATED
           
static int DIGITIZER_CLIPPED
           
static int FILTER_CHARGING
           
static int GLITCHES_DETECTED
           
static java.lang.String INTEL_IEEE_DOUBLE_PRECISION_REAL
           
static java.lang.String INTEL_IEEE_INTEGER
           
static java.lang.String INTEL_IEEE_SHORT_INTEGER
           
static java.lang.String INTEL_IEEE_SINGLE_PRECISION_REAL
           
static java.lang.String LOC_NULL_STRING
           
static int MAX_TRACEBUF_SIZE
           
static int MISSING_DATA_PRESENT
           
static java.lang.String NORESS_GAIN_RANGED
           
static int SPIKES_DETECTED
           
static java.lang.String SUN_IEEE_DOUBLE_PRECISION_REAL
           
static java.lang.String SUN_IEEE_INTEGER
           
static java.lang.String SUN_IEEE_SHORT_INTEGER
           
static java.lang.String SUN_IEEE_SINGLE_PRECISION_REAL
           
static int TELEMETRY_SYNCH_ERROR
           
static int TIME_TAG_QUESTIONABLE
           
 
Constructor Summary
TraceBuf2(byte[] data)
           
 
Method Summary
static java.lang.String extractDataType(byte[] data)
           
static int extractNumSamples(byte[] data, boolean swapBytes)
           
 java.lang.String getChannel()
           
 java.lang.String getDataType()
           
 double[] getDoubleData()
           
 java.util.Date getEndDate()
           
 double getEndTime()
           
 float[] getFloatData()
           
 int[] getIntData()
           
 java.lang.String getLocId()
           
 java.lang.String getNetwork()
           
 int getNumSamples()
           
 java.lang.String getPad()
           
 int getPin()
           
 java.lang.String getQuality()
           
 double getSampleRate()
           
static int getSampleSize(java.lang.String dataType)
           
 byte getSeedEncoding()
           
 short[] getShortData()
           
 int getSize()
           
 java.util.Date getStartDate()
           
 double getStartTime()
           
 java.lang.String getStation()
           
 java.lang.String getVersion()
           
 boolean isDoubleData()
           
static boolean isDoubleData(java.lang.String dataType)
           
 boolean isFloatData()
           
static boolean isFloatData(java.lang.String dataType)
           
 boolean isIntData()
           
static boolean isIntData(java.lang.String dataType)
           
 boolean isShortData()
           
static boolean isShortData(java.lang.String dataType)
           
static boolean isSwapBytes(java.lang.String dataType)
           
 DataRecord toMiniSeed()
          default miniseed of len 12 (=> 4096) and no compression.
 DataRecord toMiniSeed(int recLen, boolean steim1)
           
 java.lang.String toString()
           
 java.lang.String toStringWithData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOC_NULL_STRING

public static final java.lang.String LOC_NULL_STRING
See Also:
Constant Field Values

MAX_TRACEBUF_SIZE

public static final int MAX_TRACEBUF_SIZE
See Also:
Constant Field Values

AMPLIFIER_SATURATED

public static final int AMPLIFIER_SATURATED
See Also:
Constant Field Values

DIGITIZER_CLIPPED

public static final int DIGITIZER_CLIPPED
See Also:
Constant Field Values

SPIKES_DETECTED

public static final int SPIKES_DETECTED
See Also:
Constant Field Values

GLITCHES_DETECTED

public static final int GLITCHES_DETECTED
See Also:
Constant Field Values

MISSING_DATA_PRESENT

public static final int MISSING_DATA_PRESENT
See Also:
Constant Field Values

TELEMETRY_SYNCH_ERROR

public static final int TELEMETRY_SYNCH_ERROR
See Also:
Constant Field Values

FILTER_CHARGING

public static final int FILTER_CHARGING
See Also:
Constant Field Values

TIME_TAG_QUESTIONABLE

public static final int TIME_TAG_QUESTIONABLE
See Also:
Constant Field Values

SUN_IEEE_SINGLE_PRECISION_REAL

public static final java.lang.String SUN_IEEE_SINGLE_PRECISION_REAL
See Also:
Constant Field Values

SUN_IEEE_DOUBLE_PRECISION_REAL

public static final java.lang.String SUN_IEEE_DOUBLE_PRECISION_REAL
See Also:
Constant Field Values

SUN_IEEE_INTEGER

public static final java.lang.String SUN_IEEE_INTEGER
See Also:
Constant Field Values

SUN_IEEE_SHORT_INTEGER

public static final java.lang.String SUN_IEEE_SHORT_INTEGER
See Also:
Constant Field Values

INTEL_IEEE_SINGLE_PRECISION_REAL

public static final java.lang.String INTEL_IEEE_SINGLE_PRECISION_REAL
See Also:
Constant Field Values

INTEL_IEEE_DOUBLE_PRECISION_REAL

public static final java.lang.String INTEL_IEEE_DOUBLE_PRECISION_REAL
See Also:
Constant Field Values

INTEL_IEEE_INTEGER

public static final java.lang.String INTEL_IEEE_INTEGER
See Also:
Constant Field Values

INTEL_IEEE_SHORT_INTEGER

public static final java.lang.String INTEL_IEEE_SHORT_INTEGER
See Also:
Constant Field Values

NORESS_GAIN_RANGED

public static final java.lang.String NORESS_GAIN_RANGED
See Also:
Constant Field Values
Constructor Detail

TraceBuf2

public TraceBuf2(byte[] data)
Method Detail

extractNumSamples

public static int extractNumSamples(byte[] data,
                                    boolean swapBytes)

extractDataType

public static java.lang.String extractDataType(byte[] data)

isSwapBytes

public static boolean isSwapBytes(java.lang.String dataType)

getSampleSize

public static int getSampleSize(java.lang.String dataType)

isShortData

public boolean isShortData()

isIntData

public boolean isIntData()

isFloatData

public boolean isFloatData()

isDoubleData

public boolean isDoubleData()

isShortData

public static boolean isShortData(java.lang.String dataType)

isIntData

public static boolean isIntData(java.lang.String dataType)

isFloatData

public static boolean isFloatData(java.lang.String dataType)

isDoubleData

public static boolean isDoubleData(java.lang.String dataType)

getPin

public int getPin()

getNumSamples

public int getNumSamples()

getStartTime

public double getStartTime()

getEndTime

public double getEndTime()

getStartDate

public java.util.Date getStartDate()

getEndDate

public java.util.Date getEndDate()

getSampleRate

public double getSampleRate()

getStation

public java.lang.String getStation()

getNetwork

public java.lang.String getNetwork()

getChannel

public java.lang.String getChannel()

getLocId

public java.lang.String getLocId()

getVersion

public java.lang.String getVersion()

getDataType

public java.lang.String getDataType()

getQuality

public java.lang.String getQuality()

getPad

public java.lang.String getPad()

getShortData

public short[] getShortData()

getIntData

public int[] getIntData()

getFloatData

public float[] getFloatData()

getDoubleData

public double[] getDoubleData()

getSeedEncoding

public byte getSeedEncoding()

toMiniSeed

public DataRecord toMiniSeed()
                      throws SeedFormatException
default miniseed of len 12 (=> 4096) and no compression.

Returns:
Throws:
SeedFormatException

toMiniSeed

public DataRecord toMiniSeed(int recLen,
                             boolean steim1)
                      throws SeedFormatException
Throws:
SeedFormatException

getSize

public int getSize()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toStringWithData

public java.lang.String toStringWithData()