astro_toolbox.time package
Submodules
astro_toolbox.time.core module
This module contains AstroDateTime class.
- class astro_toolbox.time.core.AstroDateTime(ut_time: tuple | str = None)
Bases:
objectThis module contains AngleRad class
Attributes
- ut_timetuple | str
Date and time as tuple or string in format (2000/01/01/12:00:00)
- get_gmst()
Get Greenwich mean sidereal time with USNO formula.
\[gmst=mod(18.697375+24.065709824279(JD-2451545), 24)\]Returns
- tuple
Greenwich mean sidereal time.
- get_gregorian(delta: int = 0)
Get gregorian date with possibility of delta days from USNO formulas.
\[g_1 = julian_day + 68569\]\[g_2 = <\frac{4g_1}{146097}>\]\[g_1 = g_1 - <\frac{146087g_2 + 3}{4}>\]\[g_3 = <\frac{4000(g_1 + 1)}{1461001}>\]\[g_1 = g_1 - <\frac{1461g_3}{4}> + 31\]\[g_4 = <\frac{80g_3}{2447}>\]\[day = g_1 - <\frac{2447g_4}{80}>\]\[g_1 = <\frac{g_4}{11}\]\[month = g_4 + 2 - 12g_1\]\[year = 100(g_2 - 49) + g_3 + g_1\]Parameters
- deltaint, optional
Delta days, by default 0.
Returns
- tuple
Tuple of int containing year month and month day.
- get_jd(delta: int = 0)
Get julian day with possibility of delta days from USNO formula.
\[JD=367year-\frac{7(year+\frac{month+9}{12})}{4}>+\frac{275month}{9}+ day+1721013.5+\frac{UT}{24}-\]\[0.5sign(100year+month-190002.5)+0.5\]Parameters
- deltaint
Delta in days.
Returns
- float
Julian day.