Definition at line 42 of file wid2compare.cc.
References sff::WID2::auxid, sff::WID2::calib, sff::WID2::calper, sff::WID2::channel, sff::WID2::date, sff::WID2::dt, sff::Fauxid, sff::Fcalib, sff::Fcalper, sff::Fchannel, sff::Fdate, sff::Fdt, sff::Fhang, sff::Finstype, sff::Fnsamples, sff::Fstation, sff::Fvang, sff::WID2::hang, sff::WID2::instype, Mdatetolerance, Mdttolerance, Mflags, sff::WID2::nsamples, sff::WID2::station, and sff::WID2::vang.
46 libtime::TRelativeTime diff=hd2.date-hd1.date;
47 retval=retval && (libtime::time2double(diff)
50 if (
Mflags &
Fstation) { retval=retval && (hd1.station==hd2.station); }
51 if (
Mflags &
Fchannel) { retval=retval && (hd1.channel==hd2.channel); }
52 if (
Mflags &
Fauxid) { retval=retval && (hd1.auxid==hd2.auxid); }
53 if (
Mflags &
Fnsamples) { retval=retval && (hd1.nsamples==hd2.nsamples); }
56 double diff=hd1.dt-hd2.dt;
57 diff = diff >= 0. ? diff : -diff;
60 if (
Mflags &
Fcalib) { retval=retval && (hd1.calib==hd2.calib); }
61 if (
Mflags &
Fcalper) { retval=retval && (hd1.calper==hd2.calper); }
62 if (
Mflags &
Finstype) { retval=retval && (hd1.instype==hd2.instype); }
63 if (
Mflags &
Fhang) { retval=retval && (hd1.hang==hd2.hang); }
64 if (
Mflags &
Fvang) { retval=retval && (hd1.vang==hd2.vang); }
compare numbers of samples
compare dates of first sample
compare sampling intervals
double Mdatetolerance
relative to mean sampling interval
compare instrument type strings