Package thredds.server.opendap
Class NcSDArray
java.lang.Object
opendap.dap.DAPNode
opendap.dap.BaseType
opendap.dap.DVector
opendap.dap.DArray
opendap.servers.SDArray
thredds.server.opendap.NcSDArray
- All Implemented Interfaces:
Serializable,Cloneable,opendap.dap.ClientIO,opendap.servers.RelOps,opendap.servers.ServerArrayMethods,opendap.servers.ServerMethods,HasNetcdfVariable
Wraps a netcdf variable with rank > 0 as an SDArray.
For char arrays, use NcSDString (rank 0 or 1) or NcSDCharArray (rank > 1).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class opendap.dap.DAPNode
opendap.dap.DAPNode.CloneMap -
Field Summary
Fields inherited from class opendap.dap.DArray
dimVectorFields inherited from class opendap.dap.DAPNode
_nameClear, _nameEncoded -
Method Summary
Modifier and TypeMethodDescriptionucar.nc2.Variableget the underlying proxybooleanRead the data values (parameters are ignored).voidserialize(DataOutputStream sink, ucar.ma2.StructureData sdata, ucar.ma2.StructureMembers.Member m) voidsetData(ucar.ma2.Array data) reset the underlying proxyMethods inherited from class opendap.servers.SDArray
appendDim, appendDim, equal, getStart, getStop, getStride, greater, greater_eql, isRead, isSynthesized, less, less_eql, not_equal, printDecl, printVal, printXML, regexp, serialize, setProject, setProjection, setRead, setSynthesizedMethods inherited from class opendap.dap.DArray
checkSemantics, cloneDAG, getDimension, getDimensions, getFirstDimension, getTypeName, numDimensions, printAsMapXML, printConstraint, squeezeMethods inherited from class opendap.dap.DVector
addVariable, deserialize, externalize, getContainerVar, getLength, getPrimitiveVector, setContainerVar, setLengthMethods inherited from class opendap.dap.BaseType
addAttributeAlias, addAttributeContainer, appendAttribute, appendAttribute, appendAttributeContainer, checkSemantics, delAttribute, delAttribute, elementCount, elementCount, getAttribute, getAttribute, getAttributeNames, getAttributeTable, getLongName, hasAttributes, newPrimitiveVector, printAttributes, printAttributes, printAttributes, printAttributes, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, printXML, printXML, printXML, printXML, setClearNameMethods inherited from class opendap.dap.DAPNode
clone, cloneDAG, getClearName, getEncodedName, getParent, isProject, setEncodedName, setParent, setProject, setProjectedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface opendap.servers.ServerMethods
isProject, setProject
-
Method Details
-
getVariable
public ucar.nc2.Variable getVariable()Description copied from interface:HasNetcdfVariableget the underlying proxy- Specified by:
getVariablein interfaceHasNetcdfVariable
-
read
Read the data values (parameters are ignored). Use the start, stop and stride values, typically set by the constraint evaluator.- Specified by:
readin interfaceopendap.servers.ServerMethods- Specified by:
readin classopendap.servers.SDArray- Parameters:
datasetName- not usedspecialO- not used- Returns:
- false (no more data to be read)
- Throws:
IOExceptionEOFException
-
setData
public void setData(ucar.ma2.Array data) Description copied from interface:HasNetcdfVariablereset the underlying proxy- Specified by:
setDatain interfaceHasNetcdfVariable
-
serialize
public void serialize(DataOutputStream sink, ucar.ma2.StructureData sdata, ucar.ma2.StructureMembers.Member m) throws IOException - Specified by:
serializein interfaceHasNetcdfVariable- Throws:
IOException
-