pyacs.lib.astrotime.mjd2gpsweek

Convert modified Julian day to GPS week and GPS day of week.

pyacs.lib.astrotime.mjd2gpsweek.mjd2gpsweek(mjd)[source]

Convert modified Julian day to GPS week and GPS day of week.

Parameters:

mjd (float or array-like) – Modified Julian day.

Returns:

  • gps_week (int or ndarray) – GPS week number.

  • day_of_week (int or ndarray) – Day of week (0-6).