Modeling tree masting