Package llnl.gnem.core.io.SAC
Class SACFileReader
java.lang.Object
llnl.gnem.core.io.AbstractDataSource
llnl.gnem.core.io.FileDataSource
llnl.gnem.core.io.SAC.SACFileReader
- All Implemented Interfaces:
DataSource
-
Field Summary
Fields inherited from class llnl.gnem.core.io.FileDataSource
buffer, CSS_F4, CSS_S3, CSS_S4, CSS_T4, fis, foff, format, path
Fields inherited from class llnl.gnem.core.io.AbstractDataSource
channel, nextSample, numSamplesRemaining, samplingRate, startTime, station, totalNumSamples
-
Constructor Summary
ConstructorDescriptionSACFileReader
(File file) SACFileReader
(InputStream stream) SACFileReader
(String filename) -
Method Summary
Modifier and TypeMethodDescriptionfloat[]
float[]
getData
(ObjectInput in, SACHeader header) int
void
readFloatArray
(float[] samples) readSequence
(int nPtsRequested) Methods inherited from class llnl.gnem.core.io.FileDataSource
close, getData, getfilename, initiate, initiate, print, skipSamples
Methods inherited from class llnl.gnem.core.io.AbstractDataSource
getChannel, getCurrentEpochTime, getData, getEpochEndTime, getEpochStartTime, getNextSampleIndex, getNumSamplesAvailable, getSamplingRate, getStation, getTotalNumSamples
-
Field Details
-
header
-
timeT
-
-
Constructor Details
-
SACFileReader
- Throws:
IOException
-
SACFileReader
- Throws:
IOException
-
SACFileReader
-
-
Method Details
-
getAllSamples
public float[] getAllSamples() -
getData
-
getHeader
-
getNumPtsRemaining
public int getNumPtsRemaining() -
getStartTime
-
readFloatArray
public void readFloatArray(float[] samples) -
readSequence
-