CalculateMonthlyPrecip: Calculate Average Monthly and Annual Precipitation

Description Usage Arguments Details Value Author(s)

Description

This function transforms a climate dataset input into a multidimentional array and then performs calculations on the array to output the average weekly precipitation per month across the years (summarize by months) and the average weekly precipitation across the years (summarize by years).

Usage

1
CalculateMonthlyPrecip(clim_data, full_clim_dataset = T)

Arguments

clim_data

Data frame of climate data, including temperature, precipitation, water year, and dates

full_clim_dataset

If equals TRUE, then the function accepts the full sample clim dataset and will print dimnames appropriate for the size of that dataframe

Details

To perform these calculations, a weeks column was added to the climate dataframe, as the number of days varies across the months. Four weeks were defined per month, with the first three weeks each having 7 days, and the last week containing the rest of the days in the month, often approximately 10 days. The difference in the number of days per week was determined to not have a significant impact on the average weekly precipitation. Precipitation given in mm.

This function can be used to increase understanding of changes in mean precipitation levels over time, both monthly and over the years, in order to inform regional hydrologic decion-making, particularly water availability.

Value

List with the following items:

avge_precipitation_month

Dataframe of average weekly precipitation (mm) per month across all years

avge_precipitation_year

Dataframe of average weekly precipitaiton (mm) for every year

Author(s)

Sofie McComb & Margaux Sleckman


msleckman/ESM262ClimatePackage documentation built on June 15, 2019, 2:44 p.m.