Package com.bc.zarr.ucar
Class PartialDataCopier
- java.lang.Object
-
- com.bc.zarr.ucar.PartialDataCopier
-
public class PartialDataCopier extends Object
- Author:
- sabine.bc
-
-
Constructor Summary
Constructors Constructor Description PartialDataCopier()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopy(int[] offset, ucar.ma2.Array source, ucar.ma2.Array target)Offset describes the displacement between source and target array.
-
-
-
Method Detail
-
copy
public static void copy(int[] offset, ucar.ma2.Array source, ucar.ma2.Array target) throws ucar.ma2.InvalidRangeExceptionOffset 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 targetsource- - the source arraytarget- - the target array- Throws:
ucar.ma2.InvalidRangeException- TBD
-
-