Browse Source

Round double time to prevent midetection of time gaps

master
Michael Uleysky 2 weeks ago
parent
commit
2ef7630b19
  1. 2
      src/CF.cpp

2
src/CF.cpp

@ -117,7 +117,7 @@ RetVal<std::vector<MDateTime>> CF::ReadTimes(const NCZarr& nc, const MString& tn
}
out.resize(time.size());
for(size_t i = 0; i < time.size(); i++) out[i] = refdate + static_cast<time_t>(time[i] * step);
for(size_t i = 0; i < time.size(); i++) out[i] = refdate + static_cast<time_t>(michlib::Round(time[i])) * step;
return out;
}

Loading…
Cancel
Save