|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.iosp.LayoutRegularSegmented
public class LayoutRegularSegmented
LayoutRegularSegmented has data stored in segments that are regularly spaced. This is now Netcdf-3 "record variables" are laid out.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface ucar.nc2.iosp.Layout |
---|
Layout.Chunk |
Constructor Summary | |
---|---|
LayoutRegularSegmented(long startPos,
int elemSize,
long recSize,
int[] srcShape,
Section wantSection)
Constructor. |
Method Summary | |
---|---|
int |
getElemSize()
Get size of each element in bytes. |
long |
getTotalNelems()
Get total number of elements in the wanted subset. |
boolean |
hasNext()
Is there more to do |
Layout.Chunk |
next()
Get the next chunk |
IndexChunker.Chunk |
nextOuter()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutRegularSegmented(long startPos, int elemSize, long recSize, int[] srcShape, Section wantSection) throws InvalidRangeException
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
InvalidRangeException
- if ranges are misformedMethod Detail |
---|
public long getTotalNelems()
Layout
getTotalNelems
in interface Layout
public int getElemSize()
Layout
getElemSize
in interface Layout
public boolean hasNext()
Layout
hasNext
in interface Layout
public Layout.Chunk next()
Layout
next
in interface Layout
public IndexChunker.Chunk nextOuter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |