summertemp: summertemp: Mean summer temperature

Description Usage Arguments Details Value See Also

Description

summertemp calculates mean summer temperature across specified time period (years).

Usage

1
summertemp(startyear, endyear, tempnc, startday = 152, endday = 243)

Arguments

startyear

the earliest calendar year (AD) to be considered in the calculation.

endyear

the latest calendar year (AD) to be considered in the calculation.

tempnc

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

startday

Indicates assumed day of year of start of summer in northern hemisphere in non-leap year. Default, 1st June.

endday

Indicates assumed day of year of end of summer in northern hemisphere in non-leap year. Default, 31st August.

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 summer temperature values over the specified years.

See Also

mtoraster()

nctarray() to create array of temperature values from an nc file.

Requires function mst() to be loaded.


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