ocssw
V2022
|
TimePoint.hpp
Go to the documentation of this file.
66 TimePoint(const double seconds_since_epoch, const TimePoint::ClockType clock_type=ClockType::utc);
74 TimePoint(const boost::gregorian::date& date, const boost::posix_time::time_duration& time) : ptime_{date, time} {}
83 TimePoint(const boost::gregorian::date date, const boost::posix_time::time_duration& time, const int milli) : ptime_{date, time + boost::posix_time::milliseconds{milli}} {}
122 const boost::posix_time::ptime& native() const {return ptime_;} // shouldn't be relied on, but I won't wrap everything
132 inline friend std::ostream& operator<<(std::ostream &out, const TimePoint& t){return out << t.to_string();}
145 // boost::posix_time::time_duration duration_since_1970() const {return duration_since(boost::posix_time::ptime{{1970,1,1}});}
148 // double seconds_since_1970() const {return (double)duration_since_1970().total_microseconds() / 1'000'000.0;}
151 // boost::posix_time::time_duration duration_since_1993() const {return duration_since(boost::posix_time::ptime{{1993,1,1}});}
154 // double seconds_since_1993() const {return (double)duration_since_1993().total_microseconds() / 1'000'000.0;}
157 // boost::posix_time::time_duration duration_since_1958() const {return duration_since(boost::posix_time::ptime{{1958,1,1}});}
160 // double seconds_since_1958() const {return (double)duration_since_1958().total_microseconds() / 1'000'000.0;}
236 friend inline bool operator!=(const TimePoint& lhs, const TimePoint& rhs){ return !(lhs == rhs); }
268 friend inline bool operator<=(const TimePoint& lhs, const TimePoint& rhs){ return !(lhs > rhs); }
278 friend inline bool operator>=(const TimePoint& lhs, const TimePoint& rhs){ return !(lhs < rhs); }
TimePoint(const boost::gregorian::date &date, const boost::posix_time::time_duration &time)
Construct a new TimePoint given date, time, and optional input clock_type.
Definition: TimePoint.hpp:74
friend bool operator!=(const TimePoint &lhs, const TimePoint &rhs)
Check if two time points are not equal (clock type or time differ)
Definition: TimePoint.hpp:236
friend bool operator>=(const TimePoint &lhs, const TimePoint &rhs)
Return true if the left TimePoint is greater than or equal to the right.
Definition: TimePoint.hpp:278
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude resolving resolving GSFcd00179 Corrected handling of fill values for[Sensor|Solar][Zenith|Azimuth] resolving MODxl01751 Changed to validate LUT version against a value retrieved from the resolving MODxl02056 Changed to calculate Solar Diffuser angles without adjustment for estimated post launch changes in the MODIS orientation relative to incidentally resolving defects MODxl01766 Also resolves MODxl01947 Changed to ignore fill values in SCI_ABNORM and SCI_STATE rather than treating them as resolving MODxl01780 Changed to use spacecraft ancillary data to recognise when the mirror encoder data is being set by side A or side B and to change calculations accordingly This removes the need for seperate LUTs for Side A and Side B data it makes the new LUTs incompatible with older versions of the and vice versa Also resolves MODxl01685 A more robust GRing algorithm is being which will create a non default GRing anytime there s even a single geolocated pixel in a granule Removed obsolete messages from seed as required for compatibility with version of the SDP toolkit Corrected test output file names to end in out
Definition: HISTORY.txt:422
uint8_t day() const
Get month-based day part of the date (one-based, first of the month = 1)
Definition: TimePoint.hpp:294
friend bool operator>(const TimePoint &lhs, const TimePoint &rhs)
Return true if the left TimePoint is greater than the right.
Definition: TimePoint.hpp:258
Representation of a single point in time, with clock conversions.
Definition: TimePoint.hpp:29
double tai() const
Get TAI time in seconds since Jan 1, 1958 including leap seconds.
Definition: TimePoint.hpp:185
friend std::ostream & operator<<(std::ostream &out, const TimePoint &t)
Output time point using the to_string() function with default parameters.
Definition: TimePoint.hpp:132
friend bool operator==(const TimePoint &lhs, const TimePoint &rhs)
Check if two time points are equal.
Definition: TimePoint.hpp:225
friend bool operator<=(const TimePoint &lhs, const TimePoint &rhs)
Return true if the left TimePoint is less than or equal to the right.
Definition: TimePoint.hpp:268
TimePoint(const boost::posix_time::ptime &ptime)
Construct a new TimePoint given a boost ptime.
Definition: TimePoint.hpp:90
const std::string to_string(const std::string &format="%Y-%m-%dT%H:%M:%S%F") const
Return time point as string, with the given format.
TimePoint(const boost::gregorian::date date, const boost::posix_time::time_duration &time, const int milli)
Construct a new TimePoint given date, time plus miliseconds.
Definition: TimePoint.hpp:83
double tai93() const
Get TAI93 time in seconds since Jan 1, 1993 including leap seconds.
Definition: TimePoint.hpp:189
double seconds_since(const TimePoint::ClockType clock_type) const
Return duration since given time.
friend bool operator<(const TimePoint &lhs, const TimePoint &rhs)
Return true if the left TimePoint is less than the right.
Definition: TimePoint.hpp:246
this program makes no use of any feature of the SDP Toolkit that could generate such a then geolocation is calculated at that and then aggregated up to Resolved feature request Bug by adding three new int8 SDSs for each high resolution offsets between the high resolution geolocation and a bi linear interpolation extrapolation of the positions This can be used to reconstruct the high resolution geolocation Resolved Bug by delaying cumulation of gflags until after validation of derived products Resolved Bug by setting Latitude and Longitude to the correct fill resolving to support Near Real Time because they may be unnecessary if use of entrained ephemeris and attitude data is turned resolving bug report Corrected to filter out Aqua attitude records with missing status helping resolve bug MOD_PR03 will still correctly write scan and pixel data that does not depend upon the start time
Definition: HISTORY.txt:248
uint16_t day_of_year() const
Get day of year part of the date (one-based, Jan 1 = 1)
Definition: TimePoint.hpp:298
const boost::posix_time::ptime & native() const
Get the native representation of this date time.
Definition: TimePoint.hpp:122
double gps() const
Get GPS time in seconds since Jan 6, 1980 including leap seconds.
Definition: TimePoint.hpp:193
Definition: DataProvider.hpp:16