Class CoordinateSharer<T>


  • public class CoordinateSharer<T>
    extends Object
    Create shared coordinate variables across the variables in the same group. Use Coordinate.equals(), hashCode() to find unique coordinate variables. (so not merging similar) Used by GribCollectionBuilder and GribPartitionBuilder This is a builder helper class.
    Since:
    1/4/14
    • Constructor Detail

      • CoordinateSharer

        public CoordinateSharer​(boolean isRuntimeUnion,
                                org.slf4j.Logger logger)
        Parameters:
        isRuntimeUnion - if true, make union of runtimes, otherwise keep separate runtimes if distinct
    • Method Detail

      • finish

        public void finish()
      • reindexCoordND

        public CoordinateND<T> reindexCoordND​(CoordinateND<T> prev)
        If using runtimeUnion, or time2D, you must reindex the CoordinateND
        Parameters:
        prev - previous CoordinateND
        Returns:
        new CoordinateND containing shared coordinates and sparseArray for the new coordinates or the prev CoordinateND if reindexing not needed.
      • showInfo

        public void showInfo​(Formatter sb)