public class Float64VectorAdapter extends NumericVectorAdapter
Float64PrimitiveVector
to the
VisAD data-import context.
Instances are immutable.
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.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getDoubles(dods.dap.PrimitiveVector vec,
boolean copy)
Returns the numeric values of a compatible DODS primitive vector.
|
GriddedSet |
griddedSet(dods.dap.PrimitiveVector vector)
Returns the VisAD
GriddedSet corresponding to the metadata of
the DODS primitive vector used during construction of this instance and
the data values of a compatible DODS primitive vector. |
void |
setField(dods.dap.PrimitiveVector vector,
FieldImpl field,
boolean copy)
Sets the range of a compatible VisAD
Field . |
getMathType, getRepresentationalSets, getVariableAdapter, isFlat, setField, setField, setField, setField, setField, setField, setField, setField, setField
attributeTable, attributeTable, getCacheStrategy, isFlat, mathType, realType, realType, realType, realType, scalarName
public Float64VectorAdapter(dods.dap.Float64PrimitiveVector vector, dods.dap.DAS das, VariableAdapterFactory factory) throws VisADException, RemoteException
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.VisADException
- VisAD failure.RemoteException
- Java RMI failure.public final void setField(dods.dap.PrimitiveVector vector, FieldImpl field, boolean copy) throws VisADException, RemoteException
Field
. 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.setField
in class NumericVectorAdapter
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.VisADException
- VisAD failure.RemoteException
- Java RMI failure.public GriddedSet griddedSet(dods.dap.PrimitiveVector vector) throws VisADException, RemoteException
GriddedSet
corresponding to the metadata of
the DODS primitive vector used during construction of this instance and
the data values of a compatible DODS primitive vector.griddedSet
in class NumericVectorAdapter
vector
- A DODS primitive vector whose metadata is
compatible with the metadata of the primitive
vector used in construting this instance.Gridded1DSet
.VisADException
- VisAD failure.RemoteException
- Java RMI failure.public double[] getDoubles(dods.dap.PrimitiveVector vec, boolean copy)
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.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.