pyacs.lib.astrotime
AstroTime: time conversions (calendar, MJD, decimal year, datetime).
Traduction from perl module Astro::Time (CPAN, Chris Phillips). Conversion to Python by Jean-Mathieu Nocquet (Geoazur). Routines for calendar dates, Modified Julian day, UT/local sidereal time, and numerical/string angles. String functions removed. Datetime support added.
Notes
This module is for date manipulation; leap seconds are not handled. See the GPSTime module for GPS/UTC conversions. In Python 3.6+, / was changed to // for integer operations. All conversions not specifying ut or uts use 12h00mn00s as default; ut is the decimal fraction of day, uts is seconds since 00h00m00.0s.
Convert a calendar date to a Python datetime instance. |
|
Return the day of year (doy). |
|
Convert a calendar date to decimal year. |
|
Convert a calendar date (universal time) to modified Julian day (JD-2400000.5). |
|
Convert Python datetime to calendar date. |
|
Convert Python datetime to day of year, year, and day fraction. |
|
Convert Python datetime to decimal year. |
|
Convert Python datetime to modified Julian day. |
|
Convert datetime to seconds since 1980-01-01 00:00:00. |
|
Build a datetime array from an array of calendar dates. |
|
Round a Python datetime instance to the nearest second. |
|
Calculate the number of days since a reference decimal year. |
|
Return the day and month corresponding to day of year. |
|
Convert day of year and year to a Python datetime instance. |
|
Convert day of year and year to decimal year. |
|
Convert day of year and year to modified Julian day (JD - 2400000.5). |
|
Convert decimal year to calendar date. |
|
Convert decimal year to a Python datetime instance. |
|
Convert decimal year to day of year and day fraction. |
|
Convert decimal year to formatted epoch string 'yy:doy:sec' (%02d:%03d:%05d). |
|
Convert decimal year to modified Julian day. |
|
Convert decimal year to seconds since 1980-01-01 00:00:00. |
|
Convert SINEX-format epoch string 'YY:DOY:SOD' (e.g. '17:100:43185') to decimal year. |
|
Convert GPS week and day of week to modified Julian day. |
|
Guess a date from input (string or float) and return decimal year. |
|
Convert hours, minutes, seconds, microseconds to fractional day. |
|
Convert hours, minutes, seconds, microseconds to seconds since 00:00:00.0. |
|
Convert Julian day to modified Julian day. |
|
Convert JPL date to datetime object. |
|
Convert JPL date to decimal year. |
|
Return True if year is a leap year. |
|
Convert modified Julian day to calendar date (universal time). |
|
Convert modified Julian day to a Python datetime instance. |
|
Convert modified Julian day to year and day of year (universal time). |
|
Convert modified Julian day to decimal year. |
|
Convert modified Julian day to GPS week and GPS day of week. |
|
Convert modified Julian day to Julian day. |
|
Convert seconds since 1980-01-01 00:00:00 to datetime object(s). |
|
Convert fractional day to seconds since 00:00:00.0. |
|
Convert seconds since 00:00:00.0 (0-86400) to hours, minutes, seconds, microseconds. |
|
Convert seconds since 00:00:00.0 to fractional day. |
|
Convert 4-digit year to 2-digit year. |
|
Convert two-digit year to four-digit year. |