How do I get pixel by pixel depth data out of a .exr file?
Enable the Z buffer on the output settings:



To check if the Z buffer is correctly rendered, you can load the OpenEXR file in the compositor and add a normalize node to visualize the Z-channel: