katgpucbf.dsim.main module
Digitiser simulator.
Simulates the packet structure of MeerKAT digitisers.
- katgpucbf.dsim.main.first_timestamp(time_converter: TimeConverter, now: float, align: int) int[source]
Determine ADC timestamp for first sample and the time at which to start sending.
The resulting value will be a multiple of align.
- Parameters:
time_converter – Time converter between UNIX timestamps and ADC samples
now – Lower bound on first timestamp, expressed as UNIX timestamp
align – Alignment requirement on the returned ADC sample count