Toggle navigation
Ocean Color Science Software
Jump to content
ocssw
V2022
web
ocssw
ocssw_src
src
nav_seahawk
hawknav
jddate.py
Go to the documentation of this file.
1
def
jddate
(jd):
2
# This routine computes the calendar date corresponding to
3
# a given Julian day. This code was brazenly copied from
4
# a routine written by Myron Shear for CSC on Julian Day 1.
5
#
6
# ARGUMENT TYPE I//O DESCRIPTION
7
# __________________________________________________________
8
# JD I*4 I Julian Day (reference Jan 1, 4713 BC)
9
# I I*4 O Year
10
# J I*4 O Month
11
# K I*4 O Day of Month
12
13
l = jd + 68569
14
n = 4*l//146097
15
l = l - (146097*n + 3)//4
16
i = 4000*(l+1)//1461001
17
l = l - 1461*i//4 + 31
18
j = 80*l//2447
19
k = l - 2447*j//80
20
l = j//11
21
j = j + 2 - 12*l
22
i = 100*(n-49) + i + l
23
return
i,j,k
24
jddate.jddate
def jddate(jd)
Definition:
jddate.py:1