Not sure I follow; the next line calculates the absolute value, and that's what is used to calculate PhysicalSizeZ.