Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliaastro/astrotime.jl
Astronomical time keeping in Julia
https://github.com/juliaastro/astrotime.jl
astronomy julia time-keeping
Last synced: 4 days ago
JSON representation
Astronomical time keeping in Julia
- Host: GitHub
- URL: https://github.com/juliaastro/astrotime.jl
- Owner: JuliaAstro
- License: other
- Created: 2017-02-25T07:18:27.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-06-09T02:23:11.000Z (5 months ago)
- Last Synced: 2024-10-09T06:56:45.730Z (about 1 month ago)
- Topics: astronomy, julia, time-keeping
- Language: Julia
- Homepage: https://juliaastro.github.io/AstroTime.jl/stable/
- Size: 3.4 MB
- Stars: 39
- Watchers: 11
- Forks: 10
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# AstroTime
*Astronomical time keeping in Julia*
[![Build Status](https://github.com/JuliaAstro/AstroTime.jl/workflows/CI/badge.svg?branch=master)](https://github.com/JuliaAstro/AstroTime.jl/actions)
[![Coverage](https://codecov.io/gh/JuliaAstro/AstroTime.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaAstro/AstroTime.jl)
[![Stable Docs](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaAstro.github.io/AstroTime.jl/stable)
[![Dev Docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaAstro.github.io/AstroTime.jl/dev)AstroTime.jl provides a high-precision, time-scale aware, `DateTime`-like data type which supports
all commonly used astronomical time scales.## Installation
The package can be installed through Julia's package manager:
```julia
julia> import Pkg; Pkg.add("AstroTime")
```## Quickstart
```julia
# Create an Epoch based on the TT (Terrestial Time) scale
tt = TTEpoch("2018-01-01T12:00:00")# Transform to TAI (International Atomic Time)
tai = TAIEpoch(tt)# Transform to TDB (Barycentric Dynamical Time)
tdb = TDBEpoch(tai)# Shift an Epoch by one day
another_day = tt + 1days
```## Documentation
Please refer to the [documentation](https://JuliaAstro.github.io/AstroTime.jl/stable)
for additional information.