public class FissuresConvert
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static TimeInterval |
DAY |
static int |
RECORD_SIZE_1024 |
static byte |
RECORD_SIZE_1024_POWER |
static int |
RECORD_SIZE_256 |
static byte |
RECORD_SIZE_256_POWER |
static int |
RECORD_SIZE_4096 |
static byte |
RECORD_SIZE_4096_POWER |
static int |
RECORD_SIZE_512 |
static byte |
RECORD_SIZE_512_POWER |
Modifier and Type | Method and Description |
---|---|
static LocalSeismogramImpl |
append(LocalSeismogramImpl seis,
DataRecord seed)
assume all records from same channel and in time order with no
gaps/overlaps and small sampling rate variations.
|
static LocalSeismogramImpl |
append(LocalSeismogramImpl seis,
DataRecord[] seed)
assume all records from same channel and in time order with no
gaps/overlaps.
|
static short[] |
calcSeedMultipilerFactor(SamplingImpl sampling)
calculates the seed representation of a sample rate as factor and multiplier.
|
static SeismogramAttrImpl |
convertAttributes(DataRecord seed) |
static TimeSeriesDataSel |
convertData(DataRecord seed) |
static SamplingImpl |
convertSampleRate(DataRecord seed) |
static SamplingImpl |
convertSampleRate(int multi,
int factor) |
static UnitImpl |
fromBytes(byte[] bytes)
Turns a byte array containing just a serialized UnitImpl object back into
an UnitImpl
|
static Btime |
getBtime(MicroSecondDate date) |
static java.lang.String |
getISOTime(Btime startStruct)
get the value of start time in ISO format
|
static MicroSecondDate |
getMicroSecondTime(Btime startStruct)
get the value of start time in MicroSecondDate format
|
static MicroSecondTimeRange |
getTimeRange(BtimeRange bTime) |
static byte[] |
toBytes(UnitImpl obj)
Turns a UnitImpl into a byte array using Java serialization
|
static EncodedData[] |
toEncodedData(int[] data) |
static LocalSeismogramImpl |
toFissures(DataRecord seed) |
static LocalSeismogramImpl |
toFissures(DataRecord[] seed)
assume all records from same channel and in time order with no
gaps/overlaps.
|
static LocalSeismogramImpl |
toFissures(DataRecord[] seed,
byte defaultCompression,
byte defaultByteOrder)
assume all records from same channel and in time order with no
gaps/overlaps.
|
static java.util.List<LocalSeismogramImpl> |
toFissures(java.util.List<DataRecord> seed)
assume all records from same channel and in time order.
|
static LocalSeismogramImpl |
toFissures(java.lang.String filename) |
static LocalSeismogramImpl |
toFissuresSeismogram(java.util.List<DataRecord> seed)
assume all records from same channel and in time order with no
gaps/overlaps.
|
static DataRecord[] |
toMSeed(DataChunk chunk) |
static java.util.LinkedList<DataRecord> |
toMSeed(EncodedData[] eData,
ChannelId channel_id,
MicroSecondDate start,
SamplingImpl sampling_info,
int seqStart) |
static java.util.LinkedList<DataRecord> |
toMSeed(EncodedData[] eData,
ChannelId channel_id,
MicroSecondDate start,
SamplingImpl sampling_info,
int seqStart,
char typeCode) |
static java.util.List<DataRecord> |
toMSeed(java.util.List<PlottableChunk> chunkList) |
static DataRecord[] |
toMSeed(LocalSeismogram seis) |
static DataRecord[] |
toMSeed(LocalSeismogram seis,
int seqStart) |
static PlottableChunk |
toPlottable(DataRecord dr) |
static java.util.List<PlottableChunk> |
toPlottable(java.util.List<DataRecord> drList)
Exctract plottables stored in miniseed.
|
public static final byte RECORD_SIZE_4096_POWER
public static int RECORD_SIZE_4096
public static final byte RECORD_SIZE_1024_POWER
public static int RECORD_SIZE_1024
public static final byte RECORD_SIZE_512_POWER
public static int RECORD_SIZE_512
public static final byte RECORD_SIZE_256_POWER
public static int RECORD_SIZE_256
public static final TimeInterval DAY
public static DataRecord[] toMSeed(LocalSeismogram seis) throws SeedFormatException
SeedFormatException
public static DataRecord[] toMSeed(LocalSeismogram seis, int seqStart) throws SeedFormatException
SeedFormatException
public static DataRecord[] toMSeed(DataChunk chunk) throws SeedFormatException
SeedFormatException
public static java.util.LinkedList<DataRecord> toMSeed(EncodedData[] eData, ChannelId channel_id, MicroSecondDate start, SamplingImpl sampling_info, int seqStart) throws SeedFormatException
SeedFormatException
public static java.util.LinkedList<DataRecord> toMSeed(EncodedData[] eData, ChannelId channel_id, MicroSecondDate start, SamplingImpl sampling_info, int seqStart, char typeCode) throws SeedFormatException
SeedFormatException
public static short[] calcSeedMultipilerFactor(SamplingImpl sampling)
public static LocalSeismogramImpl toFissures(java.lang.String filename) throws SeedFormatException, java.io.IOException, FissuresException
SeedFormatException
java.io.IOException
FissuresException
public static java.util.List<LocalSeismogramImpl> toFissures(java.util.List<DataRecord> seed) throws SeedFormatException, FissuresException
SeedFormatException
FissuresException
public static LocalSeismogramImpl toFissuresSeismogram(java.util.List<DataRecord> seed) throws SeedFormatException, FissuresException
SeedFormatException
FissuresException
public static LocalSeismogramImpl toFissures(DataRecord[] seed) throws SeedFormatException, FissuresException
SeedFormatException
FissuresException
public static LocalSeismogramImpl toFissures(DataRecord[] seed, byte defaultCompression, byte defaultByteOrder) throws SeedFormatException, FissuresException
defaultCompression
- compression to use if there is no blockette 1000, See the SEED
specification for blockette 1000 for valid compression types.defaultByteOrder
- byte order to use if there is no blockette 1000. 0 indicates
little-endian order and a 1 indicates big-endian.SeedFormatException
FissuresException
public static LocalSeismogramImpl append(LocalSeismogramImpl seis, DataRecord[] seed) throws SeedFormatException, FissuresException
SeedFormatException
FissuresException
public static LocalSeismogramImpl append(LocalSeismogramImpl seis, DataRecord seed) throws SeedFormatException, FissuresException
SeedFormatException
FissuresException
public static LocalSeismogramImpl toFissures(DataRecord seed) throws SeedFormatException
SeedFormatException
public static java.util.List<DataRecord> toMSeed(java.util.List<PlottableChunk> chunkList) throws SeedFormatException
SeedFormatException
public static java.util.List<PlottableChunk> toPlottable(java.util.List<DataRecord> drList) throws SeedFormatException, FissuresException
FissuresException
SeedFormatException
public static PlottableChunk toPlottable(DataRecord dr) throws SeedFormatException, FissuresException
SeedFormatException
FissuresException
public static SamplingImpl convertSampleRate(DataRecord seed)
public static SamplingImpl convertSampleRate(int multi, int factor)
public static TimeSeriesDataSel convertData(DataRecord seed) throws SeedFormatException
SeedFormatException
public static EncodedData[] toEncodedData(int[] data)
public static SeismogramAttrImpl convertAttributes(DataRecord seed) throws SeedFormatException
SeedFormatException
public static java.lang.String getISOTime(Btime startStruct)
public static MicroSecondDate getMicroSecondTime(Btime startStruct)
public static Btime getBtime(MicroSecondDate date)
public static MicroSecondTimeRange getTimeRange(BtimeRange bTime)
public static byte[] toBytes(UnitImpl obj)
public static UnitImpl fromBytes(byte[] bytes) throws java.io.IOException
java.io.IOException