MJDlist

From DavinciWiki
Jump to: navigation, search

Description

Returns a list of the Modified Julian Day Numbers corresponding to the first day of each month of the input interval. Useful for plotting.

Arguments and Return Values

Parameters: Numbers (scalars) specifying the starting year and month and the number of months (steps)

Return Value: A 2-by-n-by-1 float (single precision) array whose first column gives the rough "year fraction" (Y + (M-1)/12) and whose second column gives the corresponding Modified Julian Day Numbers (MJDN) for the first day of each of the n months, starting with the input year and month

Usage

Syntax: MJDlist(year,month,n)

The Modified Julian Date is a continuous count of days since midnight UTC at the beginning of November 17, 1858 (in the Gregorian calendar).

All inputs must be scalar integers.

For years before 1, use astronomical numbering, e.g. 4713 BCE = -4712. (There was no year 0.)

This function will guess the calendar mode (Julian or Gregorian), based on the latest input date. For (latest) input dates between October 15, 1582 and December 31, 1919 (when both calendar systems were in use), the function will print a warning about guessing the calendar mode. (Latest) dates before October 15, 1582 use the Julian calendar. (Latest) dates after that use the Gregorian (modern) calendar. This reflects the first changeover date. However, different countries changed at different times. See http://www.tondering.dk/claus/cal/node3.html

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

Examples

dv> MJDlist()

Returns the Modified Julian Day Numbers corresponding to the
 first day of each month of the input interval
MJDlist(year,month,n) returns 2-by-n-by-1 array of MJDN of first
 day of month for n months, starting with input year/month
First column of output is rough "year fraction", Y + (M-1)/12
Second column of output is corresponding MJD Numbers
Useful for plotting
S.Marshall 04-10-2009

0
dv> # For the first day of each month of 2010:
dv> MJDlist(2010, 1, 12)
2x12x1 array of float, bsq format [96 bytes]
2010.00000000000        55197.0000000000
2010.08337402344        55228.0000000000
2010.16662597656        55256.0000000000
2010.25000000000        55287.0000000000
2010.33337402344        55317.0000000000
2010.41662597656        55348.0000000000
2010.50000000000        55378.0000000000
2010.58337402344        55409.0000000000
2010.66662597656        55440.0000000000
2010.75000000000        55470.0000000000
2010.83337402344        55501.0000000000
2010.91662597656        55531.0000000000
dv> # For the fifteenth day of each month of 2010:
dv> MJDlist(2010, 1, 12) + clone(1./24//14., 1, 12)
2x12x1 array of float, bsq format [96 bytes]
2010.04162597656        55211.0000000000
2010.12500000000        55242.0000000000
2010.20825195312        55270.0000000000
2010.29162597656        55301.0000000000
2010.37500000000        55331.0000000000
2010.45825195312        55362.0000000000
2010.54162597656        55392.0000000000
2010.62500000000        55423.0000000000
2010.70825195312        55454.0000000000
2010.79162597656        55484.0000000000
2010.87500000000        55515.0000000000
2010.95825195312        55545.0000000000

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

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

Personal tools