dekadalAverage

converts daily data to dekadal by averaging

dailyvar minfrac dekadalAverage

Arguments
labeltypedescription
dailyvar dataset or variable daily data to be averaged, with units of units
minfrac number Minimum fraction of data that must be present (i.e., fraction not indicated as missing) within each dekad in order for each average to be calculated. If minfrac is not present, then a missing value is returned. If minfrac is not given, then the average is calculated regardless of the amount of data present. (optional)
Returns
dekadalvar dataset or variable data averaged by dekad


Description

A dekad is a unit of time with a peculiar definition. There are three dekads in a calendar month. The first ten days of a month constitute the first dekad of the month. The second ten days constitute the second dekad of the month, and the remaining days (8 to 11 days, depending upon the month) constitute the third dekad.

dekadalAverage calculates dekadal average values from an input variable containing daily data.

Example

SOURCES .NOAA .NCEP .CPC .FEWS .SAsia .RFEv2 .DAILY .est_prcp
T (1 Jan 2007) (30 Apr 2007) RANGE
dekadalAverage


This example selects daily precipitation estimates from the CPC/FEWS South Asia RFE product for the period 1 January to 30 April 2007 and calculates the dekadal averages of the daily values such that there are average precipitation values for 1-10 January, 11-20 January, 21-31 January, 1-10 February 2007, etc. The underlying time grid remains a daily grid, but the average values are assigned to the dekadal intervals.

Live Example Link


See also

Average: average boxAverage monthlyAverage pentadAverage runningAverage seasonalAverage weighted-average yearlyAverage