Usage for ymdhmsToMJD

Return to directory of Todd's CASA extensions

This function converts the date and time specified by 3 to 6 integers into MJD seconds.

Usage:

au.ymdhmsToMJD(year,month,day,hour=0,minute=0,second=0.0)
  • converts 2010,12,31 to MJD on Dec 31, 2010 at UT=0
  • converts 2010,12,31,9.50 to MJD on Dec 31, 2010 at UT=09:30
  • converts 2010,12,31,9,0,5 to MJD on Dec 31, 2010 at UT=09:05
  • required arguments: year, month, day
  • optional arguments: hour, minute, second

Example:

CASA <3>: au.ymdhmsToMJD(2013,6,27,12,34,56)
  Out[3]: 56470.524259259459

-- ToddHunter - 2013-06-27
Topic revision: r1 - 2013-06-27, 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