</BUG>
final int posY = dimOrder.indexOf( 'Y' );
cal = retrieve.getPixelsPhysicalSizeY( 0 ).getValue();
if ( posY >= 0 && cal != null && cal.floatValue() != 0 )
calY = cal.floatValue();
<BUG>if ( IJ.debugMode )
IJ.log( "calibrationY:  " + calY );
</BUG>
final int posZ = dimOrder.indexOf( 'Z' );
cal = retrieve.getPixelsPhysicalSizeZ( 0 ).getValue();

final String dimOrder = r.getDimensionOrder().toUpperCase();
final int posX = dimOrder.indexOf( 'X' );
cal = retrieve.getPixelsPhysicalSizeX( 0 ).getValue();
if ( posX >= 0 && cal != null && cal.floatValue() != 0 )
calX = cal.floatValue();
Log.debug( "calibrationX:  " + calX );
final int posY = dimOrder.indexOf( 'Y' );
cal = retrieve.getPixelsPhysicalSizeY( 0 ).getValue();
if ( posY >= 0 && cal != null && cal.floatValue() != 0 )
calY = cal.floatValue();
Log.debug( "calibrationY:  " + calY );
final int posZ = dimOrder.indexOf( 'Z' );
cal = retrieve.getPixelsPhysicalSizeZ( 0 ).getValue();
