<< CL_op_latSwath Orbit properties CL_op_orbGapLof >>

CelestLab >> Orbit properties > CL_op_locTime

CL_op_locTime

Mean/true local time, longitude, right ascension (ECI/ECF, Earth only)

Calling Sequence

[par_out] = CL_op_locTime(cjd, type_par, par, type_par_out [,ut1_tref,tt_tref])
[par_out1,..,par_outN] = CL_op_locTime(cjd, type_par, par, [type1,..,typeN] [,ut1_tref,tt_tref])
[par_out] = CL_op_locTime(cjd, type_par, par, 'all' [,ut1_tref,tt_tref])

Description

Parameters

cjd:

Modified (1950.0) Julian date (Time scale: TREF) (1xN or 1x1)

type_par:

(string) Name of the input parameter: 'lon', 'ra', 'tsa', 'tlh', 'msa' or 'mlh' (1x1)

par:

Value of input parameter. Radians for lon, ra, msa, tsa and hours for mlh and tlh. (1xN or 1x1).

type_par_out:

(string) Name(s) of output parameter(s): 'lon', 'ra', 'tsa', 'tlh', 'msa', 'mlh', 'sidt', 'stra', 'smra', or a vector of any of these, or 'all'. (1xM)

ut1_tref:

(optional) UT1-TREF [seconds]. Default is %CL_UT1_TREF (1xN or 1x1)

tt_tref:

(optional) TT-TREF [seconds]. Default is %CL_TT_TREF. (1xN or 1x1)

par_out:

Value(s) of output parameter(s). See description for more details.

Authors

See also

Examples

// Right ascension to local time:
cjd = CL_dat_cal2cjd(2009,09,07,10,29,30.5); // September 7th 2009, 10:29:30.5 TREF
ra = CL_deg2rad(10);
mlh = CL_op_locTime(cjd, 'ra', ra, 'mlh') // => mean local time in hours
tlh = CL_op_locTime(cjd, 'ra', ra, 'tlh') // => true local time in hours

// Local time to right ascension:
ra = CL_op_locTime(cjd, 'mlh', mlh, 'ra') // using mean local time in hours
ra = CL_op_locTime(cjd, 'tlh', tlh, 'ra') // using true local time in hours

// Vector of right ascensions:
ra = CL_deg2rad(0:90:390);
mlh = CL_op_locTime(cjd, 'ra', ra, 'mlh')
tlh = CL_op_locTime(cjd, 'ra', ra, 'tlh')

// List of output parameters:
[tlh,mlh,sidt] = CL_op_locTime(cjd,'ra',ra,['tlh','mlh','sidt'])

// All output parameters in a structure:
par_out = CL_op_locTime(cjd, 'ra', ra, 'all');
par_out.tlh

Report an issue
<< CL_op_latSwath Orbit properties CL_op_orbGapLof >>