A quantitative study of some sources of uncertainty in opacity measurements