pint.utils.dmx_ranges_old

pint.utils.dmx_ranges_old(toas: pint.toa.TOAs, divide_freq: ~astropy.units.quantity.Quantity = <Quantity 1000. MHz>, offset: ~astropy.units.quantity.Quantity = <Quantity 0.01 d>, max_diff: ~astropy.units.quantity.Quantity = <Quantity 15. d>, verbose: bool = False) Tuple[ndarray, pint.models.Component][source]

Compute initial DMX ranges for a set of TOAs

This is a rudimentary translation of $TEMPO/utils/dmx_ranges/DMX_ranges2.py

Parameters:
  • toas (pint.toa.TOAs) –

  • divide_freq (Quantity, MHz) – Requires TOAs above and below this freq for a good DMX range

  • offset (Quantity, days) – The buffer to include around each DMX range. Warning, may cause bins to overlap?!?

  • max_diff (Quantity, days) – Maximum duration of a DMX bin

  • verbose (bool) – If True, print out verbose information about the DMX ranges including par file lines.

Returns:

  • mask (bool array) – Array with True for all TOAs that got assigned to a DMX bin

  • component (TimingModel.Component object) – A DMX Component class with the DMX ranges included