Package ucar.nc2.iosp
Class LayoutRegularSegmented
java.lang.Object
ucar.nc2.iosp.LayoutRegularSegmented
- All Implemented Interfaces:
Layout
LayoutRegularSegmented has data stored in segments that are regularly spaced.
This is now Netcdf-3 "record variables" are laid out.
- Since:
- Dec 31, 2007
-
Nested Class Summary
Nested classes/interfaces inherited from interface ucar.nc2.iosp.Layout
Layout.Chunk -
Constructor Summary
ConstructorsConstructorDescriptionLayoutRegularSegmented(long startPos, int elemSize, long recSize, int[] srcShape, Section wantSection) Constructor. -
Method Summary
-
Constructor Details
-
LayoutRegularSegmented
public LayoutRegularSegmented(long startPos, int elemSize, long recSize, int[] srcShape, Section wantSection) throws InvalidRangeException Constructor.- Parameters:
startPos- starting address of the entire data array.elemSize- size of an element in bytes.recSize- size of outer stride in bytessrcShape- shape of the entire data array. must have rank > 0wantSection- the wanted section of data- Throws:
InvalidRangeException- if ranges are misformed
-
-
Method Details
-
getTotalNelems
public long getTotalNelems()Description copied from interface:LayoutGet total number of elements in the wanted subset.- Specified by:
getTotalNelemsin interfaceLayout- Returns:
- total number of elements in the wanted subset.
-
getElemSize
public int getElemSize()Description copied from interface:LayoutGet size of each element in bytes.- Specified by:
getElemSizein interfaceLayout- Returns:
- size of each element in bytes.
-
hasNext
public boolean hasNext()Description copied from interface:LayoutIs there more to do -
next
Description copied from interface:LayoutGet the next chunk -
nextOuter
-