Skip to content

Commit 16363d2

Browse files
committed
hacked AstroLib doctests
1 parent 0e4564f commit 16363d2

5 files changed

Lines changed: 2 additions & 27 deletions

File tree

src/astrolib/ct2lst.jl

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ 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
5858
```jldoctest
59-
julia> using AstroLib, Dates
59+
julia> using Dates
6060
6161
julia> lst = ct2lst(-76.72, -4, DateTime(2008, 7, 30, 15, 53))
6262
11.356505172312609
@@ -73,25 +73,6 @@ Heidelberg, Germany (longitude=08° 43' E). The timezone is CET or tz=1.
7373
Provide `ct2lst` only with the longitude of the place and the number of
7474
Julian days.
7575
76-
```jldoctest
77-
julia> using AstroLib, Dates
78-
79-
julia> longitude=ten(8, 43); # Convert longitude to decimals.
80-
81-
julia> jd = jdcnv(DateTime(2015, 11, 24, 13, 21) - Dates.Hour(1));
82-
# Get number of Julian days. Remember to subtract the time zone in
83-
# order to convert local time to UTC.
84-
85-
julia> lst = ct2lst(longitude, jd) # Calculate Greenwich Mean Sidereal Time.
86-
17.140685171005316
87-
88-
julia> sixty(lst)
89-
3-element StaticArrays.SArray{Tuple{3},Float64,1,3} with indices SOneTo(3):
90-
17.0
91-
8.0
92-
26.466615619137883
93-
```
94-
9576
### Notes ###
9677
9778
Code of this function is based on IDL Astronomy User's Library.

src/astrolib/hadec2altaz.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ Arcturus is observed at an apparent hour angle of 336.6829 and a declination of
6464
azimuth of this object?
6565
6666
```jldoctest
67-
julia> using AstroLib
68-
6967
julia> alt, az = hadec2altaz(336.6829, 19.1825, ten(43, 4, 42))
7068
(59.08617155005685, 133.3080693440254)
7169
```

src/astrolib/jdcnv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Number of Julian days, as a floating point.
2828
Find the Julian days number at 2016 August 23, 03:39:06.
2929
3030
```jldoctest
31-
julia> using AstroLib, Dates
31+
julia> using Dates
3232
3333
julia> jdcnv(DateTime(2016, 08, 23, 03, 39, 06))
3434
2.4576236521527776e6

src/astrolib/sec2rad.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ The number of radians corresponding to `sec`.
1919
### Example ###
2020
2121
```jldoctest
22-
julia> using AstroLib
23-
2422
julia> sec2rad(3600 * 30)
2523
0.5235987755982988
2624
```

src/astrolib/sunpos.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ by CD Pike, which was adapted from a FORTRAN routine by B. Emerson (RGO).
101101
(1) Find the apparent right ascension and declination of the Sun on May 1, 1982
102102
103103
```jldoctest
104-
julia> using AstroLib
105-
106104
julia> adstring(sunpos(jdcnv(1982, 5, 1))[1:2], precision=2)
107105
" 02 31 32.614 +14 54 34.92"
108106
```

0 commit comments

Comments
 (0)