Allowance for radiation in the calculation of an explosion in an inhomogeneous atmosphere