Date type conversion
date_out = CL_dat_convert(type_in, type_out, date_in [[, dform]])
Converts a date from one type to another.
The available types are:
- "jd": Julian date
- "cjd": Modified Julian date from 1950.0
- "mjd": Modified Julian date: MJD = JD - 2400000.5
- "cal": Calendar date. [year;month;day] or [year;month;day;hours;minutes;seconds]
For non calendar dates, the value in days can be coded on 1 or 2 real numbers. The argument "dform" specifies the desired output format:
- "d1" : 1 real number
- "d2" : 2 real numbers (on 2 rows)
- "" : Default value which means "keep accuracy when possible".
See Dates and time scales for more details.
Notes:
The input and output dates are relative to the same time scale.
(string) Type of input date: "jd", "cjd", "mjd" or "cal" (1x1)
(string) Type of output date: "jd", "cjd", "mjd" or "cal" (1x1)
Input date. (1xN or 2xN or 3xN or 6xN). (3xN or 6xN only if type_in is "cal")
Output date (1xN or 2xN or 6xN). (6xN only if type_out is "cal")
Output format for "real" dates: "d1" or "d2" or "". Default ls ""
CNES - DCT/SB