skyweaver.timegrid¶
Time grid utilities for satellite simulations.
TimeGrid
dataclass
¶
TimeGrid(start, stop, cadence_s)
Regular time sampling grid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
datetime
|
Start datetime of the grid. Naive datetimes are interpreted as UTC. |
required |
stop
|
datetime
|
Stop datetime of the grid. Naive datetimes are interpreted as UTC. |
required |
cadence_s
|
float
|
Sampling cadence in seconds. Must be positive. |
required |
Notes
The generated grid includes the start time and includes the stop time only if it lies exactly on the cadence.
__post_init__
¶
__post_init__()
Validate inputs and normalize datetimes to UTC.
Source code in src/skyweaver/timegrid.py
53 54 55 56 57 58 59 60 61 62 63 64 65 | |
datetimes
¶
datetimes()
Return the grid as a list of UTC datetimes.
Source code in src/skyweaver/timegrid.py
82 83 84 | |
skyfield
¶
skyfield()
Return the grid as a Skyfield Time array.
Source code in src/skyweaver/timegrid.py
86 87 88 89 | |
summary
¶
summary()
Return a compact human-readable summary.
Source code in src/skyweaver/timegrid.py
91 92 93 94 95 96 97 98 | |