MJD2JD

From DavinciWiki
Jump to: navigation, search

Description

Converts Modified Julian Date to Julian Date

Arguments and Return Values

Parameters: Numeric array specifying the Modified Julian Date

Return Value: A double-format numeric array with the same organization as the inputs

Usage

Syntax: MJD2JD(MJD)

The Julian Date is a continuous count of days since noon UTC on January 1, 4713 BCE in the proleptic Julian calendar. The Modified Julian Date is a continuous count of days since midnight UTC at the beginning of November 17, 1858 (in the Gregorian calendar). An offset of 2400000.5 is the only difference between the two. This function just adds that offset.

When MJD2JD() is entered without any arguments, it prints its description, as shown below.

Examples

dv> MJD2JD()

Convert Modified Julian Date to Julian Date
Works for array inputs
MJD2JD(MJD) returns the Julian Date.
Returns double-precision Julian Date
S.Marshall 04-11-2009

0
dv> MJD2JD(0)
2400000.50000000
dv> MJD2JD(-2400000.5)
0.00000000000000
dv> MJD2JD(0.5)
2400001.00000000
dv> a = clock(1)
7x1x1 array of double, bsq format [56 bytes]
2009.00000000000        12.0000000000000        15.0000000000000        13.0000000000000
36.0000000000000        47.2287370000000        -7.0000000000000
dv> MJD(a)
55180.8588799622
dv> JD(a)
2455181.35887996
dv> MJD2JD(MJD(a))
2455181.35887996

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Recent Library Changes

Created On: 11-18-2009
Modified On: 05-07-2010

Personal tools