update.earth function

Update an earth model