The determination of D. D is found by comparing the distance of isocenter to diaphragm on an AP DRR from the planning scan with the distance of isocenter to diaphragm on an AP or PA portal image. Correction for setup error on the portal image is made by finding the distance from isocenter to a vertebral landmark visible on both images.