CL_op_locTime — Local time or right ascension at date
[par2] = CL_op_locTime(cjd,type_par1,par1,type_par2,[ut1_utc])
type_par1 can be :
- 'lon' for longitude (rad)
- 'mlh' for mean local time (hours)
- 'tlh' for true local time (hours)
- 'ra' for right ascension (rad)
type_par2 can be any of the above and also :
- 'sidt' for sideral time (rad)
- 'smra' for sun mean right ascension (rad)
- 'smta' for sun true right ascension (rad)
- 'all' for all of the above (in the same order)
All calculations are computed in Gamma 50 Veis frame (see CL_fr_G502J2000Mat), and equation (1) is used.
For a given direction, equations (2) to (4) are used (mha is mean angle and tha is true angle).
To change from angle (h) to hour (hl), equation (5) is used.
Sideral time is the same as the one computed in CL_mod_sidTimeG50
CNES julian dates (1xN)
string defining par1. It can be 'lon', 'mlh', 'tlh', 'ra'.
longitude, mean local time (hours), true local time (hours) or right ascension [rad,decimal hour] (1xN)
string defining par2. It can be 'lon', 'mlh', 'tlh', 'ra', 'sidt', 'smra', 'smta' or 'all'
longitude, mean local time (hours), true local time (hours), right ascension, sideral time, sun mean right ascension or sun true right ascension or all (1xN or 7xN)
cjd = CL_dat_cal2cjd(2009,09,07,10,29,30.5); // September 7th 2009, 10h29min30.5s [mlh] = CL_op_locTime(cjd,'lon',CL_deg2rad(2),'mlh') // mean local hour at longitude 2° [tlh] = CL_op_locTime(cjd,'lon',CL_deg2rad(2),'tlh') // true local hour at longitude 2° [ra] = CL_op_locTime(cjd,'lon',CL_deg2rad(2),'ra') // right ascension at longitude 2° [tlh] = CL_op_locTime(cjd,'mlh',15.5,'tlh') // mean local hour to true local hour [mlh] = CL_op_locTime(cjd,'tlh',15.5,'mlh') // true local hour to mean local hour [smra] = CL_op_locTime(cjd,'mlh',15.5,'smra') // sun's mean right ascension at mean local hour [all] = CL_op_locTime(cjd,'mlh',15.5,'all') // all parameters at mean local hour