Skip to content

Commit

Permalink
WIP: Time module, improved documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncaneddy committed Dec 18, 2018
1 parent a303252 commit 6a35958
Show file tree
Hide file tree
Showing 8 changed files with 622 additions and 25 deletions.
10 changes: 6 additions & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ makedocs(
"Modules" => Any[
"modules/constants.md",
"modules/universe.md",
"modules/time.md",
"Function Index" => "modules/function_index.md",
],
"Tutorials" => Any[
"tutorials/universe_example.md",
"tutorials/epoch_example.md",
]
# "Tutorials" => Any[
# "tutorials/universe_example.md",
# "tutorials/epoch_example.md",
# ],
]
)

Expand Down
7 changes: 1 addition & 6 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,4 @@ The software in this package was developed as part of academic research.
If you would like to help support it, please star the repository as such metrics on
usage help guage interest and secure funding. If you use the software as part of
your research, teaching, or other activities, we would be grateful if you could
cite our work.

## Index

```@index
```
cite our work.
16 changes: 16 additions & 0 deletions docs/src/modules/function_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Function Library

## Constants
```@index
Modules = [SatelliteDynamics.Constants]
```

## Universe
```@index
Modules = [SatelliteDynamics.Universe]
```

## Time
```@index
Modules = [SatelliteDynamics.Time]
```
16 changes: 16 additions & 0 deletions docs/src/modules/time.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Time

The Time submodule contains common time transformations such as converting between different date representations or converting a specific instant in time between different time systems.

The module also defines the `Epoch` class which p

Most of the transformations are make backend calls to the SOFA C-library functions provide the package [SOFA.jl](https://github.com/sisl/SOFA.jl "SOFA.jl")

```@docs
caldate_to_mjd
mjd_to_caldate
caldate_to_jd
jd_to_caldate
elapsed_from_epoch
days_from_elapsed
```
6 changes: 3 additions & 3 deletions src/SatelliteDynamics.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
__precompile__(true)
module SatelliteDynamics

# Usings
using Reexport
using LinearAlgebra

# Includes
include("constants.jl")
include("universe.jl")
# include("time.jl")
include("time.jl")
# include("refsys.jl")
# include("coordinates.jl")
# include("astrodynamics.jl")
Expand All @@ -18,7 +18,7 @@ include("universe.jl")
# Export Values
@reexport using SatelliteDynamics.Constants
@reexport using SatelliteDynamics.Universe
# @reexport using SatelliteDynamics.Time
@reexport using SatelliteDynamics.Time
# @reexport using SatelliteDynamics.RefSys
# @reexport using SatelliteDynamics.Coordinates
# @reexport using SatelliteDynamics.Astrodynamics
Expand Down
Loading

0 comments on commit 6a35958

Please sign in to comment.