DATRW++ library: seismic data I/O with multiple formats

◆ data()

MiniSEEDRecord::Tseries datrw::mseed::MiniSEEDRecord::data ( ) const

Return actual data samples stored in object.

return data samples (meaningless after skipdata)

Notice that a refernce to the array is passed, that will be reused by the instance to read the next block.

The container MiniSEEDRecord::Mdata can be larger than the actual samples stored therein. Extract as many samples as being indicated by to be read from file.

Note
The function returns an aff::Series object, which has reference semantics. As a consequence sample values in the returned object will be altered upon reading more samples with the same MiniSEEDRecord object.

Definition at line 60 of file mseedread_mseedrecord_other.cc.

References Mdata, Mrecordheader, datrw::mseed::SEED::FixedDataRecordHeader::nsamp, and valid().

61  {
62  Tseries retval;
63  if (this->valid())
64  {
65  retval=aff::subarray(Mdata)(Mrecordheader.nsamp-1);
66  }
67  return(retval);
68  } // MiniSEEDRecord::Tseries MiniSEEDRecord::data() const
aff::Series< double > Tseries
Definition: sfftest.cc:47
unsigned short int nsamp
number of samples
Definition: seedstructs.h:311
bool valid() const
true if record was successfully read
Definition: mseedread.h:187
SEED::FixedDataRecordHeader Mrecordheader
Fixed Data Record Header.
Definition: mseedread.h:237
Tseries Mdata
Container for sample data.
Definition: mseedread.h:245
Here is the call graph for this function: