Add extra climate variables

addVars(dat)

Arguments

dat

a data.table with columns:

  • PPT05, PPT06, PPT07, PPT08, PPT09 (May, ..., September precip), PPT_at (autumn precip), PPT_wt (winter precip)

  • CMD07 (July climate moisture deficit), CMD (annual CMD)

  • DD_0_at (autumn degree-days below 0 deg), DD_0_wt (winter degree-days below 0 deg)

Value

dat with all of the above added climate variables.

Details

This function calculates additional climate variables derived from those output by [climr::downscale()]. Presently it adds the following:

  • May to June precip.: \(PPT_MJ = PPT_05 + PPT_06\)

  • July to September precip.: \(PPT_JAS = PPT_07 + PPT_08 + PPT_09\)

  • Precip. during vegetation dormant period (autumn, winter): \(PPT.dormant = PPT_at + PPT_wt\)

  • CMD deficit: \(CMD.def = 500 - PPT.dormant\) (bounded to 0)

  • \(CMDMax = CMD_07\)

  • \(CMD.total = CMD.def + CMD\)

  • \(DD_delayed = ((DDsub0_at + DDsub0_wt)*0.0238) - 1.8386\) bounded to 0)