def julian_date(hUTC, dayofyear, year):
""" Julian calendar date
Args:
hUTC: fractional hour (UTC time)
dayofyear (int):
year (int):
Returns:
the julian date
Details:
World Meteorological Organization (2006).Guide to meteorological
instruments and methods of observation. Geneva, Switzerland.
"""
delta = year - 1949
leap = numpy.floor(delta / 4.)
return 2432916.5 + delta * 365 + leap + dayofyear + hUTC / 24.
评论列表
文章目录