added parameter to make the earth rotation substraction optional