|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.data.netcdf.out.DataAccessor
visad.data.netcdf.out.FieldAccessor
The FieldAccessor class accesses data in a VisAD Field that's being adapted to a netCDF API.
| Field Summary | |
protected Dimension[] |
localDims
The netCDF Dimensions of the VisAD data object in netCDF order (outermost dimension first). |
protected int[] |
localIndexes
The netCDF indexes for the local VisAD data object in netCDF order (outermost dimension first). |
protected int |
localRank
The number of netCDF dimensions in the VisAD data object. |
protected VisADAccessor |
outerAccessor
The VisADAccessor of the outer VisAD data object. |
protected int[] |
outerIndexes
The netCDF indexes for the outer VisAD data object in netCDF order (outermost dimension first). |
protected int |
outerRank
The number of netCDF dimensions in the outer VisAD data object. |
| Constructor Summary | |
protected |
FieldAccessor(Dimension[] localDims,
VisADAccessor outerAccessor)
Construct from netCDF Dimensions, and an outer VisADAccessor. |
| Method Summary | |
protected Object |
get()
Return a datum given the split, netCDF indexes. |
Object |
get(int[] indexes)
Return a datum given its location as netCDF indexes. |
Dimension[] |
getDimensions()
Return the netCDF dimensions at the level of the data object. |
int[] |
getLengths()
Return the netCDF dimensional lengths. |
int |
getRank()
Return the number of netCDF dimensions at the current level. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final int localRank
protected final Dimension[] localDims
protected volatile int[] localIndexes
protected final VisADAccessor outerAccessor
protected final int outerRank
protected volatile int[] outerIndexes
| Constructor Detail |
protected FieldAccessor(Dimension[] localDims,
VisADAccessor outerAccessor)
localDims - The netCDF dimensions of the Field in netCDF.
order (outermost dimension first).outerAccessor - The DataAccessor for accessing the
Fields object of the enclosing,
VisAD data object.| Method Detail |
protected Object get()
throws IOException
get in class DataAccessorlocalIndexes and outerIndexes.
IOException - The corresponding datum couldn't be accessed.public int getRank()
getRank in interface VisADAccessorpublic Dimension[] getDimensions()
getDimensions in interface VisADAccessorpublic int[] getLengths()
getLengths in interface VisADAccessor
public Object get(int[] indexes)
throws IOException
get in interface VisADAccessorindexes - The netCDF indexes for the datum.
Tuple) or Java
primitive (e.g. Double) corresponding to
the given position.
IOException - The corresponding datum couldn't be accessed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||