NCL Home > Documentation > Functions

Date routines

day_of_week Calculates the day of the week given month, day, and year.
day_of_year Calculates the day of the year given month, day, and year.
days_in_month Calculates the number of days in a month given month, day, and year.
get_file_suffix Extract the suffix associated with a file name.
greg2jul Converts a Gregorian date to a Julian day.
grib_stime2itime Converts grib initial_time (string) to time (integer).
isleapyear Determines if a given year is a leap year (Gregorian calendar).
jul2greg Converts a Julian day to a Gregorian date.
latlon2utm Converts from lat/lon to UTM using a specified datum.
monthday Calculates a concatenated month_day given a day and year.
ut_calendar Converts a mixed Julian/Gregorian date to a UT-referenced date.
ut_convert Converts a time variable from one set of units to another.
ut_inv_calendar Converts a a UT-referenced date to a mixed Julian/Gregorian date.
utm2latlon Converts from UTM to lat/lon using a specified datum.
yyyymm_time Creates a one-dimensional array containing year-month [yyyymm] values.
yyyymm_to_yyyyfrac Converts a one dimensional array containing yyyymm values to yyyy and fractional year.
yyyymmdd_time Creates a one-dimensional array containing year-month-day [yyyymmdd] values.
yyyymmdd_to_yyyyfrac Converts a one dimensional array containing yyyymmdd values to yyyy and fractional year.
yyyymmddhh_to_yyyyfrac Converts a one dimensional array containing yyyymmddhh values to yyyy and fractional year.