Implemented extinction-coefficient thresholding and co-adding to speed up the opacity calculation.