summerprecip: summerprecip: Total Summer precipitation

Description Usage Arguments Details Value See Also

Description

summerprecip calculates the total amount of precipitation falling in summer.

Usage

1
2
summerprecip(startyear, endyear, precipnc, startday = 152,
  endday = 243)

Arguments

startyear

earliest calender year to be considered in calculations.

endyear

latest calender year to be considered in calculations.

precipnc

full path name of nc file containing precipitation values and with data extent: -1.25, 358.75, -91.25, 91.25 when converted to raster format.

startday

assumed day of year of start of summer in northen hemisphere in non-leap year* (default 1st June).

endday

assumed day of year of end of summer in northen hemisphere in non-leap year* (default 31st Aug).

Details

Function has been designed to run with raster data of dimensions 73 x 144. Seasons are flipped in southern hemisphere. I.e. 1st June (day 152) = day 152+365/2+0.5 = 334 = 1st Dec. in leap years, 1 day added. Startday and endday should be for northern hemisphere, and are calculated for southern hemisphere within the function.

Value

A matrix of mean growing degree days above 10 degrees Celcius during the growing season over the specified years.

See Also

Requires function tsp() to be loaded.

mtoraster() to convert output matrix to a raster.

nctarray() to create an array from an nc file.


ilyamaclean/climvars documentation built on June 19, 2019, 2:22 p.m.