BIPM Circular T intervals

Functions:

cirt2mjd(year, month)

Convert the BIPM Circular T year-month in MJD start-stop.

mjd2cirt(mjd)

Return the Circular T (year/month) corresponding to the given MJD.

cirtvals(start[, stop])

Calculate MJD intervals corresponding to the BIPM Circular Ts between start and stop.

tintervals.cirt.cirt2mjd(year, month)

Convert the BIPM Circular T year-month in MJD start-stop.

Parameters:
  • year (int) – Circular-T year

  • month (int) – Circular-T month

Returns:

Circular-T start and stop as MJD

Return type:

1d array

tintervals.cirt.mjd2cirt(mjd)

Return the Circular T (year/month) corresponding to the given MJD.

Parameters:

mjd (float) – MJD date

Returns:

corresponding Circular-T containing the MJD.

Return type:

year, month

tintervals.cirt.cirtvals(start, stop=None)

Calculate MJD intervals corresponding to the BIPM Circular Ts between start and stop.

Parameters:
  • start (float or datetime) – starting MJD or date

  • stop (float or datetime, optional) – stop MJD or date, by default (present day).

Returns:

start, stop intervals in MJD for each Circular T

Return type:

2d array