Class PartialDataCopier


  • public class PartialDataCopier
    extends Object
    Author:
    sabine.bc
    • Constructor Detail

      • PartialDataCopier

        public PartialDataCopier()
    • Method Detail

      • copy

        public static void copy​(int[] offset,
                                ucar.ma2.Array source,
                                ucar.ma2.Array target)
                         throws ucar.ma2.InvalidRangeException
        Offset describes the displacement between source and target array. For example in the case of one dimensional arrays:
             source array initialized { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
             target array initialized { -1, -1, -1 }
         
        An offset of 3 means that the target arrays will be displayed that way:
             source   { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
             target            { 4, 5, 6 }
         
        An offset of -2 means that the target arrays will be displayed that way:
             source           { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
             target   { -1, -1, 1 }
         
        Parameters:
        offset - - the displacement between source and target
        source - - the source array
        target - - the target array
        Throws:
        ucar.ma2.InvalidRangeException - TBD