Usage for mjdNanosecondsToMJDandUT

Return to directory of Todd's CASA extensions

Converts a value of MJD in nanoseconds into MJD in days, and into a UT date/time string. See also mjdToUT and mjdSecondsToMJDandUT

Usage:

au.mjdNanosecondsToMJDandUT(mjdnanosec, prec=6, delimiter='-')
  • prec: default=6=show to nearest second; change to 7 to show tenths of seconds, etc.
  • Caveat: only works for a scalar input value

Example:

CASA <4>: au.mjdNanosecondsToMJDandUT(4851642333144000000)
  Out[4]: (56153.26774472223, '2012-08-14 06:25:33 UT')

-- ToddHunter - 2013-01-21
Topic revision: r3 - 2015-09-18, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback