pint.binaryconvert.convert_binary
- pint.binaryconvert.convert_binary(model: ~pint.models.timing_model.TimingModel, output: str, NHARMS: int = 3, useSTIGMA: bool = False, KOM: ~astropy.units.quantity.Quantity = <Quantity 0. deg>) TimingModel[source]
Convert between binary models
Input models can be from
BinaryDD,BinaryDDS,BinaryDDGR,BinaryBT,BinaryDDK,BinaryELL1,BinaryELL1H,BinaryELL1k,BinaryDDHOutput models can be from
BinaryDD,BinaryDDS,BinaryBT,BinaryDDK,BinaryELL1,BinaryELL1H,BinaryELL1k,BinaryDDH- Parameters:
model (pint.models.timing_model.TimingModel) –
output (str) – Output model type
NHARMS (int, optional) – Number of harmonics (
ELL1Honly)useSTIGMA (bool, optional) – Whether to use STIGMA or H4 (
ELL1Honly)KOM (astropy.units.Quantity) – Longitude of the ascending node (
DDKonly)
- Returns:
outmodel
- Return type:
Notes
Default value in pint for NHARMS is 7, while in tempo2 it is 4.