Home > atmlab > time > jd2mjd.m

jd2mjd

PURPOSE ^

JD2MJD Modified Julian day number from Julian day number.

SYNOPSIS ^

function mjd = jd2mjd(jd)

DESCRIPTION ^

JD2MJD Modified Julian day number from Julian day number.

   [MJD] = JD2MJD(JD) returns the modified Julian day number corresponding
   to the given Julian day number.

   See also MJD2JD, DATE2MJD, DATE2JD.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

jd2mjd.m

SOURCE CODE ^

0001 function mjd = jd2mjd(jd)
0002 %JD2MJD Modified Julian day number from Julian day number.
0003 %
0004 %   [MJD] = JD2MJD(JD) returns the modified Julian day number corresponding
0005 %   to the given Julian day number.
0006 %
0007 %   See also MJD2JD, DATE2MJD, DATE2JD.
0008 
0009 %   Author:      Peter J. Acklam
0010 %   Time-stamp:  2002-03-03 12:51:32 +0100
0011 %   E-mail:      pjacklam@online.no
0012 %   URL:         http://home.online.no/~pjacklam
0013 
0014    error(nargchk(1, 1, nargin));
0015 
0016    mjd = jd - 2400000.5;

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005