35 #define DATRW_TSOFTSFFCONTAINER_CC_VERSION \ 36 "DATRW_TSOFTSFFCONTAINER_CC V1.0 " 38 #include <datrwxx/tsoftsffcontainer.h> 39 #include <datrwxx/tsoftreader.h> 40 #include <datrwxx/channeltranslation.h> 41 #include <aff/iterator.h> 57 for (
int ich=0; ich<infile.
nchannels(); ++ich)
72 aff::Iterator<Ttraceseries> I(outfile.
Mtraces);
73 for (
int ich=0; ich<infile.
nchannels(); ++ich)
77 sff::FREE channelfree;
79 for (
int itr=0; itr<cd.
ntraces(); ++itr)
88 I->Mwid2.date=ds.
date();
89 I->Mwid2.dt=libtime::time2double(ds.
interval());
90 I->Mwid2.nsamples=I->Mseries.size();
107 I->Mwid2.auxid=sci.
auxid;
config parameters for data extractionThese parameters control the way gaps in the input data are hand...
int ntraces() const
number of data traces
trace of contiguous data.
const std::string & thedatatype() const
return datatype
::sff::FREE Mfree
free comment lines
void series(const Tdseries &s)
set series
const Datatrace & trace(const unsigned int &i) const
return data trace
contents of a complete TSOFT file
File readfile(std::istream &is, const ReaderConfig &rc)
read complete file
const std::string & theinstrument() const
return instrument
Root namespace of library.
void chinfo(const Channelinfo &ci)
set channel info
SFFchannelid translate(const TSOFTchannelid &ci)
return SFF channel ID for given TSOFT channel ID
Tlos channelinfofree(const Channelinfo &ci)
prepare free comment block from channel info
hold TSOFT channel description
const std::string & thelocation() const
return location
int nchannels() const
return number of channels
void date(const libtime::TAbsoluteTime d)
set time of first sample
aff::Series< datrw::tsoft::Trace > Ttraceseries
collection of traces
const Tlos & free() const
return free lines
Ttraceseries Mtraces
all traces in file
void interval(const libtime::TRelativeTime i)
set sampling interval
const Datacontainer & dc() const
return number of channels
hold SFF channel description