if (LonIt.hasNext()) { theLon = LonIt.getDoubleNext(); theLat = LatIt.getDoubleCurrent(); theDepth = DepthIt.getDoubleCurrent(); theTime = cTimeIt.getDoubleCurrent(); } else { LonIt = ((ArrayFloat)Lon.read()).getIndexIterator(); theLon = LonIt.getDoubleNext(); if (LatIt.hasNext()) { theLat = LatIt.getDoubleNext(); theDepth = DepthIt.getDoubleCurrent(); theTime = cTimeIt.getDoubleCurrent(); } else { LatIt = ((ArrayFloat)Lat.read()).getIndexIterator(); theLat = LatIt.getDoubleNext(); if (DepthIt.hasNext()) { theDepth = DepthIt.getDoubleNext(); theTime = cTimeIt.getDoubleCurrent(); } else { DepthIt = ((ArrayFloat)Depth.read()).getIndexIterator(); theDepth = DepthIt.getDoubleNext(); if (cTimeIt.hasNext()) { theTime = cTimeIt.getDoubleNext(); } else { throw new System.Exception("Should Not EVER be here"); } } } }