public class ArrayVariableAdapter extends VariableAdapter
DArray variables to the
VisAD data-import context.
Instances are immutable.
| Modifier and Type | Method and Description |
|---|---|
static ArrayVariableAdapter |
arrayVariableAdapter(dods.dap.DArray array,
dods.dap.DAS das,
VariableAdapterFactory factory)
Returns an instance corresponding to a DODS
DArray. |
DataImpl |
data(dods.dap.DArray array,
boolean copy)
Returns the VisAD
DataImpl corresponding to a DODS DArray. |
FunctionType |
getFunctionType()
Returns the VisAD
FunctionType of this instance. |
MathType |
getMathType()
Returns the VisAD
MathType of this instance. |
SimpleSet[] |
getRepresentationalSets(boolean copy)
|
void |
setField(dods.dap.DArray array,
FieldImpl field,
boolean copy)
Sets a compatible VisAD
Field. |
data, data, data, data, data, data, data, data, data, data, data, data, data, data, mathTypeattributeTable, attributeTable, getCacheStrategy, isFlat, mathType, realType, realType, realType, realType, scalarNamepublic static ArrayVariableAdapter arrayVariableAdapter(dods.dap.DArray array, dods.dap.DAS das, VariableAdapterFactory factory) throws VisADException, RemoteException
DArray.array - The DODS DArray. Only the DODS metadata is
used: the array needn't have any actual data.das - The DODS DAS in which the attribute
table for the DODS variable is embedded.factory - A factory for creating variable adapters.VisADException - VisAD failure.RemoteException - Java RMI failure.public MathType getMathType()
MathType of this instance.getMathType in class VariableAdapterpublic FunctionType getFunctionType()
FunctionType of this instance.public SimpleSet[] getRepresentationalSets(boolean copy)
Sets that will be used to represent the data
values in the range of a VisAD FlatField.getRepresentationalSets in class VariableAdaptercopy - If true, then the array is copied.public DataImpl data(dods.dap.DArray array, boolean copy) throws VisADException, RemoteException
DataImpl corresponding to a DODS DArray.data in class VariableAdapterarray - The DODS DArray to have the
corresponding VisAD data object returned.
The array must be compatible with the array
used to construct this instance.copy - If true, then data values are copied.FieldImpl and may be
a FlatField or FileFlatField.VisADException - VisAD failure. Possible the array wasn't
compatible with the array used to construct this
instance.RemoteException - Java RMI failure.public void setField(dods.dap.DArray array,
FieldImpl field,
boolean copy)
throws VisADException,
RemoteException
Field. This method is used by GridVariableAdapter for the DArray portion of a DODS DGrid.array - The DODS DArray to be used to set a
compatible VisAD Field. The array must be
compatible with the array used to construct this
instance.copy - If true, then the data values are copied.field - The VisAD Field to be set. The field must be
compatible with the array.VisADExceptionRemoteExceptionCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.