36 #define TF_WID2ISAMPLE_CC_VERSION \ 37 "TF_WID2ISAMPLE_CC V1.2" 45 const libtime::TAbsoluteTime& idate)
47 libtime::TRelativeTime dt=libtime::double2time(wid2.
dt);
48 long int retval=(idate-wid2.
date)/dt;
49 if (idate<wid2.
date) retval *= -1;
57 libtime::TRelativeTime dt=libtime::double2time(wid2.
dt);
58 libtime::TAbsoluteTime retval=wid2.
date+i*dt;
64 const libtime::TAbsoluteTime& idate)
66 libtime::TRelativeTime dt=libtime::double2time(wid2.
dt);
67 libtime::TRelativeTime retval=(idate-wid2.
date)%dt;
libtime::TAbsoluteTime date
time of first sample
long int wid2isample(const WID2 &wid2, const libtime::TAbsoluteTime &idate)
return index for sample at given date
double dt
sampling interval (sec)
libtime::TRelativeTime wid2isamplerest(const WID2 &wid2, const libtime::TAbsoluteTime &idate)
return time interval between idate and sample sample next to idate