NCL Home >
Documentation >
Functions >
Date routines
monthday
Calculates a concatenated month_day given a day and year.
Prototype
function monthday ( year : integer, day : integer ) return_val [dimsizes(year)] : integer
Arguments
yearA multi-dimensional integer array or scalar value representing years. Values must be >= 0.
dayAn integer array of the same size as year representing days of the year. Values must be 1 to 366.
Return value
An integer array of the same size as year. Each value represents the concatenated month and day (Gregorian calendar).
Description
Calculates a concatenated month_day given arrays of years and days.
See Also
day_of_year, day_of_week, days_in_month, isleapyear
Examples
Example 1
md = monthday((/1933,1996,1997,1996/),(/245,366,365,61/)) ; md = (/902,1231,1231,301/)