visad.data.dods
Class Float64VectorAdapter
- java.lang.Object
-
- visad.data.dods.Adapter
-
- visad.data.dods.VectorAdapter
-
- visad.data.dods.NumericVectorAdapter
-
- visad.data.dods.Float64VectorAdapter
-
public class Float64VectorAdapter extends NumericVectorAdapter
Provides support for adapting a DODSFloat64PrimitiveVectorto the VisAD data-import context.Instances are immutable.
-
-
Constructor Summary
Constructors Constructor and Description Float64VectorAdapter(dods.dap.Float64PrimitiveVector vector, dods.dap.DAS das, VariableAdapterFactory factory)Constructs from a DODS vector and a factory for creating DODS variable adapters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]getDoubles(dods.dap.PrimitiveVector vec, boolean copy)Returns the numeric values of a compatible DODS primitive vector.GriddedSetgriddedSet(dods.dap.PrimitiveVector vector)Returns the VisADGriddedSetcorresponding to the metadata of the DODS primitive vector used during construction of this instance and the data values of a compatible DODS primitive vector.voidsetField(dods.dap.PrimitiveVector vector, FieldImpl field, boolean copy)Sets the range of a compatible VisADField.-
Methods inherited from class visad.data.dods.VectorAdapter
getMathType, getRepresentationalSets, isFlat, setField, setField, setField, setField, setField, setField, setField, setField, setField
-
-
-
-
Constructor Detail
-
Float64VectorAdapter
public Float64VectorAdapter(dods.dap.Float64PrimitiveVector vector, dods.dap.DAS das, VariableAdapterFactory factory) throws VisADException, java.rmi.RemoteExceptionConstructs from a DODS vector and a factory for creating DODS variable adapters.- Parameters:
vector- A DODS vector to be adapted.das- The DODS DAS in which the attribute table for the DODS vector is embedded.factory- A factory for creating adapters of DODS variables.- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
-
Method Detail
-
setField
public final void setField(dods.dap.PrimitiveVector vector, FieldImpl field, boolean copy) throws VisADException, java.rmi.RemoteExceptionSets the range of a compatible VisADField. The range values are taken from a DODS primitive vector whose metadata must be compatible with the metadata of the primitive vector used during construction of this instance.- Specified by:
setFieldin classNumericVectorAdapter- Parameters:
vector- A DODS primitive vector whose data values are to be used to set the range of the VisAD field.field- A VisAD field to have its range values set.copy- If true, then the range values are copied from the primitive vector.- Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
griddedSet
public GriddedSet griddedSet(dods.dap.PrimitiveVector vector) throws VisADException, java.rmi.RemoteException
Returns the VisADGriddedSetcorresponding to the metadata of the DODS primitive vector used during construction of this instance and the data values of a compatible DODS primitive vector.- Specified by:
griddedSetin classNumericVectorAdapter- Parameters:
vector- A DODS primitive vector whose metadata is compatible with the metadata of the primitive vector used in construting this instance.- Returns:
- A VisAD GriddedSet corresponding to the input.
The (super)class of the object is
Gridded1DSet. - Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
getDoubles
public double[] getDoubles(dods.dap.PrimitiveVector vec, boolean copy)Returns the numeric values of a compatible DODS primitive vector.- Parameters:
vec- A DODS primitive vector that is compatible with the primitive vector used to construct this instance.copy- If true, then a copy is returned.- Returns:
- The numeric values of the primitive vector.
-
-
DMelt 3.0 © DataMelt by jWork.ORG