Added function to compute the temporal accuracy index and updated script to test it