<< CL_dat_scaleConvert Coordinates and frames CL_dat_str2cal >>

celestlab >> Coordinates and frames > CL_dat_shift

CL_dat_shift

Shift a date by a certain quantity

Calling Sequence

[cjd_shifted] = CL_dat_shift(cjd, seconds)

Description

Parameters

cjd:

Modified (1950.0) Julian date in any time scale. (1xN or 2xN or 1x1)

seconds:

Number of seconds. Same time scale as cjd. (1xN or 1x1)

cjd_shifted:

Shifted date. (same size as cjd)

Authors

See also

Examples

// Example 1:
cjd = CL_dat_cal2cjd(2000,1,1,12,0,0);
cjd_shifted = CL_dat_shift(cjd, 0 : 60 : 500)

// Example 2:
cjd = CL_dat_cal2cjd2(2000,1,1,12,0,0);
cjd_shifted = CL_dat_shift(cjd, 0 : 60 : 500)

Report an issue
<< CL_dat_scaleConvert Coordinates and frames CL_dat_str2cal >>