Skip to content

Commit 531f24a

Browse files
committed
rm AstroLib doctests
1 parent 16363d2 commit 531f24a

5 files changed

Lines changed: 0 additions & 40 deletions

File tree

src/astrolib/ct2lst.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,6 @@ constants used.
5555
Find the Greenwich mean sidereal time (GMST) on 2008-07-30 at 15:53 in
5656
Baltimore, Maryland (longitude=-76.72 degrees). The timezone is EDT or tz=-4
5757
58-
```jldoctest
59-
julia> using Dates
60-
61-
julia> lst = ct2lst(-76.72, -4, DateTime(2008, 7, 30, 15, 53))
62-
11.356505172312609
63-
64-
julia> sixty(lst)
65-
3-element StaticArrays.SArray{Tuple{3},Float64,1,3} with indices SOneTo(3):
66-
11.0
67-
21.0
68-
23.418620325392112
69-
```
70-
7158
Find the Greenwich mean sidereal time (GMST) on 2015-11-24 at 13:21 in
7259
Heidelberg, Germany (longitude=08° 43' E). The timezone is CET or tz=1.
7360
Provide `ct2lst` only with the longitude of the place and the number of

src/astrolib/hadec2altaz.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ Arcturus is observed at an apparent hour angle of 336.6829 and a declination of
6363
19.1825 while at the latitude of +43° 4' 42''. What are the local altitude and
6464
azimuth of this object?
6565
66-
```jldoctest
67-
julia> alt, az = hadec2altaz(336.6829, 19.1825, ten(43, 4, 42))
68-
(59.08617155005685, 133.3080693440254)
69-
```
70-
7166
### Notes ###
7267
7368
`altaz2hadec` converts Horizon (Alt-Az) coordinates to Hour Angle and

src/astrolib/jdcnv.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,6 @@ Number of Julian days, as a floating point.
2727
2828
Find the Julian days number at 2016 August 23, 03:39:06.
2929
30-
```jldoctest
31-
julia> using Dates
32-
33-
julia> jdcnv(DateTime(2016, 08, 23, 03, 39, 06))
34-
2.4576236521527776e6
35-
36-
julia> jdcnv(2016, 08, 23, 03, 39, 06)
37-
2.4576236521527776e6
38-
39-
julia> jdcnv("2016-08-23T03:39:06")
40-
2.4576236521527776e6
41-
```
42-
4330
### Notes ###
4431
4532
This is the inverse of `daycnv`.

src/astrolib/sec2rad.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ The number of radians corresponding to `sec`.
1818
1919
### Example ###
2020
21-
```jldoctest
22-
julia> sec2rad(3600 * 30)
23-
0.5235987755982988
24-
```
25-
2621
### Notes ###
2722
2823
Use `rad2sec` to convert radians to seconds.

src/astrolib/sunpos.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ by CD Pike, which was adapted from a FORTRAN routine by B. Emerson (RGO).
100100
101101
(1) Find the apparent right ascension and declination of the Sun on May 1, 1982
102102
103-
```jldoctest
104-
julia> adstring(sunpos(jdcnv(1982, 5, 1))[1:2], precision=2)
105-
" 02 31 32.614 +14 54 34.92"
106-
```
107103
108104
The Astronomical Almanac gives `02 31 32.58 +14 54 34.9` so the error for this
109105
case is < 0.5".

0 commit comments

Comments
 (0)