conv/many suite: convert (m)any seismic data format(s)
structgapseries.cc
Go to the documentation of this file.
1 
37 #define TF_STRUCTGAPSERIES_CC_VERSION \
38  "TF_STRUCTGAPSERIES_CC V1.0 "
39 
40 #include "structgapseries.h"
41 
44 ::sff::WID2 GapSeriesHeader::wid2() const
45 {
46  ::sff::WID2 retval;
47  retval.dt=libtime::time2double(this->completenessbins.binsize());
48  retval.date=this->completenessbins.firstbin();
49  retval.station=this->ID.station();
50  retval.channel=this->ID.channel();
51  retval.auxid=this->ID.auxid();
52  return(retval);
53 } // ::sff::WID2 GapSeriesHeader::wid2() const
54 
55 /*----------------------------------------------------------------------*/
56 
58  header(h), completeness(0, h.completenessbins.nbins()-1)
59 {
60  completeness=0.;
61 } // CompletenessSeries::CompletenessSeries(const GapSeriesHeader& h)
62 
63 /*----------------------------------------------------------------------*/
64 
66  header(h), gapseries(0, h.completenessbins.nbins()-1)
67 {
68  gapseries=0.;
69 } // GapSeries::GapSeries(const GapSeriesHeader& h)
70 
71 /* ----- END OF structgapseries.cc ----- */
Tgapseries gapseries
libtime::TAbsoluteTime firstbin() const
CompletenessSeries(const GapSeriesHeader &h)
CompletenessBins completenessbins
::sff::WID2 wid2() const
produce a WID2 header for file output
std::string station() const
CompletenessSeries completeness(const GapSeries &gs, const bool &debug)
convert gaps to completeness
std::string channel() const
std::string auxid() const
GapSeries(const GapSeriesHeader &h)
libtime::TRelativeTime binsize() const
header data for complenetess series
all structs use to produce series of gaps and series of completeness (prototypes) ...
Tcompletenessseries completeness