Class ChunkPosition

java.lang.Object
noaa.coastwatch.util.chunk.ChunkPosition

public class ChunkPosition extends Object
The ChunkPosition class marks a position within a ChunkingScheme. The position is specified by its starting location and length along each dimension.
Since:
3.4.0
Author:
Peter Hollemans
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int[]
    The length of the chunk along each dimension.
    int[]
    The start coordinates of the chunk within the chunk space.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChunkPosition(int rank)
    Creates a new position with start and length initialized to zero along each dimension.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
    Gets the number of data values held by a chunk at this chunk position.
     

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • start

      public int[] start
      The start coordinates of the chunk within the chunk space.
    • length

      public int[] length
      The length of the chunk along each dimension.
  • Constructor Details

    • ChunkPosition

      public ChunkPosition(int rank)
      Creates a new position with start and length initialized to zero along each dimension.
      Parameters:
      rank - the number of dimensions of the chunk space.
  • Method Details

    • getValues

      public int getValues()
      Gets the number of data values held by a chunk at this chunk position.
      Returns:
      the number of data values.
      Since:
      3.8.1
    • clone

      public ChunkPosition clone()
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object