Trim to same start time.
Set all start dates to the latest found in the collection.
183 if (this->size() > 1)
186 typename Tbase::iterator i_series=this->begin();
187 Theader header=i_series->header;
188 libtime::TAbsoluteTime begin=header.date;
190 while (i_series != this->end())
192 header=i_series->header;
193 libtime::TAbsoluteTime thisbegin=header.date;
194 begin = thisbegin > begin ? thisbegin : begin;
199 i_series=this->begin();
200 while (i_series != this->end())
202 header=i_series->header;
203 long int index_offset=wid2isample(header, begin);
205 "inconsistent header data");
207 "time series does not overlap with others");
208 i_series->header.date=wid2isample(header, index_offset);
209 i_series->header.nsamples -= index_offset;
210 i_series->setfirstindex(i_series->f()+index_offset);
#define TSXX_assert(C, M)
Check an assertion and report by throwing an exception.