IJ.log( "dim:  " + dim );
</BUG>
for ( int series = 0; series < numSeries; ++series )
{
<BUG>if ( IJ.debugMode )
IJ.log( "fetching data for series:  " + series );
</BUG>
r.setSeries( series );
final MetadataRetrieve retrieve = service.asRetrieve(r.getMetadataStore());
double[] location = CommonFunctions.getPlanePosition( r, retrieve, series, 0, invertX, invertY, ignoreZStage );

}
int dim = 2;
for ( int series = 0; series < numSeries; ++series )
if ( r.getSizeZ() > 1 )
dim = 3;
Log.debug( "dim:  " + dim );
for ( int series = 0; series < numSeries; ++series )
{
Log.debug( "fetching data for series:  " + series );
r.setSeries( series );
final MetadataRetrieve retrieve = service.asRetrieve(r.getMetadataStore());
double[] location = CommonFunctions.getPlanePosition( r, retrieve, series, 0, invertX, invertY, ignoreZStage );
