reads params.txt, uses 6th degree polynomial