Calculate optical constants from THz-Td Data