public class LocalSeismogramImpl extends SeismogramAttrImpl
| Modifier and Type | Field and Description |
|---|---|
protected static edu.iris.dmc.seedcodec.Codec |
codec
decompression class that understands different compression routines.
|
protected edu.iris.dmc.seedcodec.DecompressedData |
decomp
holds a decompressed copy of the data elements.
|
beginTimedatabegin_time, channel_id, id, num_points, parm_ids, properties, sample_rate_history, sampling_info, time_corrections, y_unit| Modifier | Constructor and Description |
|---|---|
protected |
LocalSeismogramImpl()
Empty constructor to be used only for valuetype marshaling.
|
|
LocalSeismogramImpl(SeismogramAttr attr,
double[] data)
Constructs a new LocalSeismogram from the given attributes and data.
|
|
LocalSeismogramImpl(SeismogramAttr attr,
float[] data)
Constructs a new LocalSeismogram from the given attributes and data.
|
|
LocalSeismogramImpl(SeismogramAttr attr,
int[] data)
Constructs a new LocalSeismogram from the given attributes and data.
|
|
LocalSeismogramImpl(SeismogramAttr attr,
short[] data)
Constructs a new LocalSeismogram from the given attributes and data.
|
|
LocalSeismogramImpl(SeismogramAttr attr,
TimeSeriesDataSel data)
Constructs a new LocalSeismogram from the given attributes and data.
|
|
LocalSeismogramImpl(java.lang.String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
double[] data)
creates a new LocalSeismogramImpl.
|
|
LocalSeismogramImpl(java.lang.String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
float[] data)
creates a new LocalSeismogramImpl.
|
|
LocalSeismogramImpl(java.lang.String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
int[] data)
creates a new LocalSeismogramImpl.
|
|
LocalSeismogramImpl(java.lang.String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
short[] data)
creates a new LocalSeismogramImpl.
|
|
LocalSeismogramImpl(java.lang.String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
TimeSeriesDataSel data)
creates a new LocalSeismogramImpl.
|
|
LocalSeismogramImpl(java.lang.String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
double[] data)
creates a new LocalSeismogramImpl.
|
|
LocalSeismogramImpl(java.lang.String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
float[] data)
creates a new LocalSeismogramImpl.
|
|
LocalSeismogramImpl(java.lang.String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
int[] data)
creates a new LocalSeismogramImpl.
|
|
LocalSeismogramImpl(java.lang.String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
short[] data)
creates a new LocalSeismogramImpl.
|
|
LocalSeismogramImpl(java.lang.String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
TimeSeriesDataSel data)
creates a new LocalSeismogramImpl.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append_doubles(double[] newData)
Appends the newData to the existing data.
|
void |
append_doubles(int seq_num,
double[] data,
AuditInfo[] audit_info) |
void |
append_encoded_seq(EncodedData[] newData)
Appends the newData to the existing data.
|
void |
append_encoded_seq(int seq_num,
EncodedData[] data,
AuditInfo[] audit_info) |
void |
append_encoded(EncodedData newData)
Appends the newData to the existing data.
|
void |
append_encoded(int seq_num,
EncodedData data,
AuditInfo[] audit_info) |
void |
append_floats(float[] newData)
Appends the newData to the existing data.
|
void |
append_floats(int seq_num,
float[] data,
AuditInfo[] audit_info) |
void |
append_longs(int[] newData)
Appends the newData to the existing data.
|
void |
append_longs(int seq_num,
int[] data,
AuditInfo[] audit_info) |
void |
append_shorts(int seq_num,
short[] data,
AuditInfo[] audit_info) |
void |
append_shorts(short[] newData)
Appends the newData to the existing data.
|
void |
append(TimeSeriesDataSel b) |
int |
calculateNumPoints() |
boolean |
can_convert_to_double() |
boolean |
can_convert_to_float() |
boolean |
can_convert_to_long()
This should really be called can_convert_to_int, but corba calls a
java int a long, and so the name is strange.
|
boolean |
can_convert_to_short() |
void |
close() |
static java.io.Serializable |
createEmpty()
A factory method to create an empty LocalSeismogramImpl.
|
void |
dataChanged() |
protected void |
decodeBits() |
double[] |
get_as_doubles() |
EncodedData[] |
get_as_encoded() |
float[] |
get_as_floats() |
int[] |
get_as_longs() |
short[] |
get_as_shorts() |
AuditElement[] |
get_audit_trail() |
UnitRangeImpl |
getAmplitudeRange() |
UnitRangeImpl |
getAmplitudeRange(int beginIndex,
int endIndex) |
TimeSeriesDataSel |
getData() |
TimeSeriesType |
getDataType() |
QuantityImpl |
getMaxValue() |
QuantityImpl |
getMaxValue(int startIndex,
int endIndex) |
QuantityImpl |
getMeanValue() |
QuantityImpl |
getMeanValue(int startIndex,
int endIndex) |
QuantityImpl |
getMinValue() |
QuantityImpl |
getMinValue(int startIndex,
int endIndex) |
int |
getNumPoints() |
QuantityImpl |
getValueAt(int index) |
float[] |
getValues(int start,
int length)
temporary
|
static LocalSeismogramImpl |
implize(LocalSeismogram s) |
static LocalSeismogramImpl[] |
implize(LocalSeismogram[] s) |
boolean |
is_double() |
boolean |
is_encoded() |
boolean |
is_float() |
boolean |
is_long() |
boolean |
is_short() |
boolean |
isDataDecodable() |
protected FissuresException |
makeFissuresException(edu.iris.dmc.seedcodec.CodecException e) |
protected FissuresException |
makeFissuresException(java.lang.String e) |
void |
setAttributes(SeismogramAttr attr)
Sets the attributes of this seismogram, use with caution!!!
|
void |
setData(double[] data)
Sets the timeseries data for this seismogram.
|
void |
setData(EncodedData[] data)
Sets the timeseries data for this seismogram.
|
void |
setData(float[] data)
Sets the timeseries data for this seismogram.
|
void |
setData(int[] data)
Sets the timeseries data for this seismogram.
|
void |
setData(short[] data)
Sets the timeseries data for this seismogram.
|
void |
setData(TimeSeriesDataSel data)
Sets the timeseries data for this seismogram.
|
get_id, getBeginTime, getChannelID, getEndTime, getName, getParameterRefs, getProperties, getProperty, getSampling, getTimeInterval, getUnit, is_closed, setName, setParameterRefs, setProperties, setProperty_read, _truncatable_ids, _type, _writeprotected transient edu.iris.dmc.seedcodec.DecompressedData decomp
protected static transient edu.iris.dmc.seedcodec.Codec codec
protected LocalSeismogramImpl()
public LocalSeismogramImpl(java.lang.String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
TimeSeriesDataSel data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.public LocalSeismogramImpl(java.lang.String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
int[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.public LocalSeismogramImpl(java.lang.String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
float[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.public LocalSeismogramImpl(java.lang.String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
double[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.public LocalSeismogramImpl(java.lang.String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
short[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.public LocalSeismogramImpl(java.lang.String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
TimeSeriesDataSel data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.properties - Properties for the seismogram, perhaps including a
name for labeling a display, or other small extra information. Stored
as name-value pairs.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.time_corrections - The time corrections that have
been applied to the begin time of the seismogram.sample_rate_history - The history of sampling corrections that have
been applied to the sampling of the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.public LocalSeismogramImpl(java.lang.String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
short[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.properties - Properties for the seismogram, perhaps including a
name for labeling a display, or other small extra information. Stored
as name-value pairs.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.time_corrections - The time corrections that have
been applied to the begin time of the seismogram.sample_rate_history - The history of sampling corrections that have
been applied to the sampling of the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.public LocalSeismogramImpl(java.lang.String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
int[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.properties - Properties for the seismogram, perhaps including a
name for labeling a display, or other small extra information. Stored
as name-value pairs.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.time_corrections - The time corrections that have
been applied to the begin time of the seismogram.sample_rate_history - The history of sampling corrections that have
been applied to the sampling of the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.public LocalSeismogramImpl(java.lang.String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
float[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.properties - Properties for the seismogram, perhaps including a
name for labeling a display, or other small extra information. Stored
as name-value pairs.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.time_corrections - The time corrections that have
been applied to the begin time of the seismogram.sample_rate_history - The history of sampling corrections that have
been applied to the sampling of the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.public LocalSeismogramImpl(java.lang.String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
double[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.properties - Properties for the seismogram, perhaps including a
name for labeling a display, or other small extra information. Stored
as name-value pairs.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.time_corrections - The time corrections that have
been applied to the begin time of the seismogram.sample_rate_history - The history of sampling corrections that have
been applied to the sampling of the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.public LocalSeismogramImpl(SeismogramAttr attr, short[] data)
public LocalSeismogramImpl(SeismogramAttr attr, int[] data)
public LocalSeismogramImpl(SeismogramAttr attr, float[] data)
public LocalSeismogramImpl(SeismogramAttr attr, double[] data)
public LocalSeismogramImpl(SeismogramAttr attr, TimeSeriesDataSel data)
public static java.io.Serializable createEmpty()
public static LocalSeismogramImpl implize(LocalSeismogram s)
public static LocalSeismogramImpl[] implize(LocalSeismogram[] s)
public void setAttributes(SeismogramAttr attr)
public void setData(TimeSeriesDataSel data)
public void setData(short[] data)
public void setData(int[] data)
public void setData(float[] data)
public void setData(double[] data)
public void setData(EncodedData[] data)
public int getNumPoints()
getNumPoints in class SeismogramAttrImplpublic QuantityImpl getMinValue() throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecExceptionpublic QuantityImpl getMinValue(int startIndex, int endIndex) throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecExceptionpublic QuantityImpl getMaxValue() throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecExceptionpublic QuantityImpl getMaxValue(int startIndex, int endIndex) throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecExceptionpublic QuantityImpl getMeanValue() throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecExceptionpublic QuantityImpl getMeanValue(int startIndex, int endIndex) throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecExceptionpublic QuantityImpl getValueAt(int index) throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecExceptionpublic UnitRangeImpl getAmplitudeRange(int beginIndex, int endIndex) throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecExceptionpublic UnitRangeImpl getAmplitudeRange() throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecExceptionpublic boolean is_long()
is_long in interface TimeSeriesAccessis_long in class SeismogramAttrImplpublic boolean is_float()
is_float in interface TimeSeriesAccessis_float in class SeismogramAttrImplpublic boolean is_double()
is_double in interface TimeSeriesAccessis_double in class SeismogramAttrImplpublic boolean is_short()
is_short in interface TimeSeriesAccessis_short in class SeismogramAttrImplpublic boolean is_encoded()
is_encoded in interface TimeSeriesAccessis_encoded in class SeismogramAttrImplpublic boolean can_convert_to_long()
can_convert_to_long in interface TimeSeriesAccesscan_convert_to_long in class SeismogramAttrImplpublic boolean can_convert_to_float()
can_convert_to_float in interface TimeSeriesAccesscan_convert_to_float in class SeismogramAttrImplpublic boolean can_convert_to_double()
can_convert_to_double in interface TimeSeriesAccesscan_convert_to_double in class SeismogramAttrImplpublic boolean can_convert_to_short()
can_convert_to_short in interface TimeSeriesAccesscan_convert_to_short in class SeismogramAttrImplpublic TimeSeriesDataSel getData()
protected FissuresException makeFissuresException(edu.iris.dmc.seedcodec.CodecException e)
protected FissuresException makeFissuresException(java.lang.String e)
public int[] get_as_longs()
throws FissuresException
get_as_longs in interface TimeSeriesAccessget_as_longs in class SeismogramAttrImplFissuresExceptionpublic short[] get_as_shorts()
throws FissuresException
get_as_shorts in interface TimeSeriesAccessget_as_shorts in class SeismogramAttrImplFissuresExceptionpublic float[] get_as_floats()
throws FissuresException
get_as_floats in interface TimeSeriesAccessget_as_floats in class SeismogramAttrImplFissuresExceptionpublic double[] get_as_doubles()
throws FissuresException
get_as_doubles in interface TimeSeriesAccessget_as_doubles in class SeismogramAttrImplFissuresExceptionpublic EncodedData[] get_as_encoded() throws FissuresException
get_as_encoded in interface TimeSeriesAccessget_as_encoded in class SeismogramAttrImplFissuresExceptionpublic void close()
close in interface TimeSeriesAdminclose in class SeismogramAttrImplpublic AuditElement[] get_audit_trail() throws NotImplemented
get_audit_trail in interface AuditSystemAccessget_audit_trail in class SeismogramAttrImplNotImplementedpublic void append_longs(int seq_num,
int[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
append_longs in interface TimeSeriesAdminappend_longs in class SeismogramAttrImplSequenceOutOfOrderpublic void append_shorts(int seq_num,
short[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
append_shorts in interface TimeSeriesAdminappend_shorts in class SeismogramAttrImplSequenceOutOfOrderpublic void append_floats(int seq_num,
float[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
append_floats in interface TimeSeriesAdminappend_floats in class SeismogramAttrImplSequenceOutOfOrderpublic void append_doubles(int seq_num,
double[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
append_doubles in interface TimeSeriesAdminappend_doubles in class SeismogramAttrImplSequenceOutOfOrderpublic void append_encoded_seq(int seq_num,
EncodedData[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
append_encoded_seq in interface TimeSeriesAdminappend_encoded_seq in class SeismogramAttrImplSequenceOutOfOrderpublic void append_encoded(int seq_num,
EncodedData data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
append_encoded in interface TimeSeriesAdminappend_encoded in class SeismogramAttrImplSequenceOutOfOrderpublic void append_longs(int[] newData)
throws FissuresException
FissuresExceptionpublic void append_shorts(short[] newData)
throws FissuresException
FissuresExceptionpublic void append_floats(float[] newData)
throws FissuresException
FissuresExceptionpublic void append_doubles(double[] newData)
throws FissuresException
FissuresExceptionpublic void append_encoded_seq(EncodedData[] newData) throws FissuresException
FissuresExceptionpublic void append_encoded(EncodedData newData) throws FissuresException
FissuresExceptionpublic int calculateNumPoints()
public float[] getValues(int start,
int length)
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecExceptionpublic TimeSeriesType getDataType()
public void append(TimeSeriesDataSel b) throws FissuresException
FissuresExceptionpublic boolean isDataDecodable()
public void dataChanged()
protected void decodeBits()
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecException