Code for calculating annual NPP from tree rings