Skip to content

Commit

Permalink
Update common.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoosw authored Sep 25, 2024
1 parent 793ae04 commit 243f8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/AdvectedPopulations/PISCES/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Returns the length of day in seconds at the latitude `φ`, `t`seconds after the
# as per Forsythe et al., 1995 (https://doi.org/10.1016/0304-3800(94)00034-F)
p = asind(0.39795 * cos(0.2163108 + 2 * atan(0.9671396 * tan(0.00860 * (floor(Int, t / day) - 186)))))

return (24 - 24 / 180 * acosd((sind(0.8333) + sind(φ) * sind(p)) / (cosd(φ) * cosd(p)))) * day / hour
return (24 - 24 / 180 * acosd((sind(0.8333) + sind(φ) * sind(p)) / (cosd(φ) * cosd(p)))) * hour
end

"""
Expand Down

0 comments on commit 243f8e5

Please sign in to comment.