Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sriharshakandala committed Nov 8, 2023
1 parent 2f81fdf commit f4b9798
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions docs/src/find_equinox_perihelion_dates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ FT = Float64
include(joinpath(pkgdir(Insolation), "parameters", "create_parameters.jl"))
param_set = create_insolation_parameters(FT)

epoch_string = "2000-01-01T11:58:56.816"
date0 = DateTime(epoch_string, dateformat"y-m-dTHH:MM:SS.s")
date0 = DateTime("2000-01-01T11:58:56.816")

# Difference in NH and SH zenith angles at time x in given year
function zdiff(x, year, od)
Expand Down
4 changes: 2 additions & 2 deletions docs/src/library.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Insolation.OrbitalData
## Zenith Angle
```@autodocs
Modules = [Insolation]
Private = false
Private = true
Pages = ["ZenithAngleCalc.jl"]
```

Expand All @@ -25,4 +25,4 @@ Pages = ["ZenithAngleCalc.jl"]
Modules = [Insolation]
Private = false
Pages = ["InsolationCalc.jl"]
```
```
3 changes: 1 addition & 2 deletions docs/src/plot_diurnal_cycle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ function diurnal_cycle(lat, lon, date, od, timezone, filename)
hours = collect(range(0, stop = 24, length = nhours))
insol = zeros(nhours)
sza = zeros(nhours)
epoch_string = "2000-01-01T11:58:56.816"
date0 = DateTime(epoch_string, dateformat"y-m-dTHH:MM:SS.s")
date0 = DateTime("2000-01-01T11:58:56.816")

for (i, hr) in enumerate(hours)
h = Int(round(hr + timezone))
Expand Down
3 changes: 1 addition & 2 deletions docs/src/plot_insolation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ function calc_day_lat_insolation(
d_arr = Array{I}(round.(collect(range(0, stop = 365, length = n_days))))
l_arr = collect(range(-90, stop = 90, length = n_lats))
F_arr = zeros(n_days, n_lats)
epoch_string = "2000-01-01T11:58:56.816"
date0 = DateTime(epoch_string, dateformat"y-m-dTHH:MM:SS.s")
date0 = DateTime("2000-01-01T11:58:56.816")
# loop over days
for (i, d) in enumerate(d_arr)
for (j, lat) in enumerate(l_arr)
Expand Down
1 change: 0 additions & 1 deletion src/ZenithAngleCalc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ Returns the earth-sun distance (m), declination angle (radians) and hour angle
`longitude of the perihelion at epoch`, `obliquity at epoch`, `eccentricity at epoch`,
and `eot_correction`.
# calculate the distance, declination, and hour angle (at lon=0)
"""
function distance_declination_hourangle(
date::DateTime,
Expand Down

0 comments on commit f4b9798

Please sign in to comment.