Return to directory of Todd's CASA extensions

Build a date string from the year and day-of-year. See also doyFromDate and yearFraction.


au.dateFromDoy(year, doy, delimiter='/', hms=False)
  • year: integer
  • doy: integer (1= Jan1)
  • delimiter: string to delimit year, month, day
  • hms: if True, then also include HH:MM:SS
Returns: string of format: YYYY/MM/DD


CASA <4>: au.dateFromDoy(2015, 234.56)
  Out[4]: '2015/08/22'

CASA <5>: au.dateFromDoy(2015, 234.56, hms=True)
  Out[5]: '2015/08/22/13:26:24'

-- ToddHunter - 2016-05-09
Topic revision: r1 - 2016-05-09, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback