|
ARTS
2.3.1285(git:92a29ea9-dirty)
|
Stuff related to time. More...
Go to the source code of this file.
Functions | |
| TimeStep | time_stepper_selection (const String &time_step) |
| Time | next_even (const Time &t, const TimeStep &dt) |
| Returns the next time after t with an even time-step. More... | |
| ArrayOfIndex | time_steps (const ArrayOfTime ×, const String &step) |
| Finds the index matching demands in a list of times. More... | |
| std::ostream & | operator<< (std::ostream &os, const Time &t) |
| Output for Time. More... | |
| std::istream & | operator>> (std::istream &is, Time &t) |
| Input for Time. More... | |
| Time | mean_time (const ArrayOfTime &ts, Index s, Index e) |
| Computes the average time in a list. More... | |
| Time mean_time | ( | const ArrayOfTime & | ts, |
| Index | s = 0, |
||
| Index | e = -1 |
||
| ) |
Computes the average time in a list.
| [in] | ts | A list of time |
| [in] | s | A starting index; valid range [0, ts.nelem()) |
| [in] | e | The end+1 index; valid range [-1, ts.nelem()]; -1 is treated as ts.nelem() |
Definition at line 135 of file artstime.cc.
Referenced by operator<<().
Returns the next time after t with an even time-step.
| [in] | t | A time |
| [in] | dt | A duration of time |
Definition at line 50 of file artstime.cc.
References Time::EpochTime().
Referenced by operator<<(), and time_steps().
| std::ostream& operator<< | ( | std::ostream & | os, |
| const Time & | t | ||
| ) |
Output for Time.
Definition at line 90 of file artstime.cc.
References Time::PartOfSecond(), and Time::toStruct().
| std::istream& operator>> | ( | std::istream & | is, |
| Time & | t | ||
| ) |
Input for Time.
Definition at line 108 of file artstime.cc.
References Array< base >::nelem(), and my_basic_string< charT >::split().
Definition at line 32 of file artstime.cc.
References my_basic_string< charT >::tolower().
Referenced by time_steps().
| ArrayOfIndex time_steps | ( | const ArrayOfTime & | times, |
| const String & | step | ||
| ) |
Finds the index matching demands in a list of times.
The first index is 0 and the second index is the start of the first even period of the given stepsize
The last index is times.nelem(). If output has 1 element, no range was found matching the criteria.
| [in] | times | Times sorted in ascending order |
| [in] | step | A duration of time |
Definition at line 60 of file artstime.cc.
References N, Array< base >::nelem(), next_even(), time_stepper_selection(), and time_steps().
Referenced by operator<<(), test01(), time_steps(), and ybatchTimeAveraging().