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

public class NcSDArray extends opendap.servers.SDArray implements 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

    dimVector

    Fields inherited from class opendap.dap.DAPNode

    _nameClear, _nameEncoded
  • Method Summary

    Modifier and Type
    Method
    Description
    ucar.nc2.Variable
    get the underlying proxy
    boolean
    read(String datasetName, Object specialO)
    Read the data values (parameters are ignored).
    void
    serialize(DataOutputStream sink, ucar.ma2.StructureData sdata, ucar.ma2.StructureMembers.Member m)
     
    void
    setData(ucar.ma2.Array data)
    reset the underlying proxy

    Methods 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, setSynthesized

    Methods inherited from class opendap.dap.DArray

    checkSemantics, cloneDAG, getDimension, getDimensions, getFirstDimension, getTypeName, numDimensions, printAsMapXML, printConstraint, squeeze

    Methods inherited from class opendap.dap.DVector

    addVariable, deserialize, externalize, getContainerVar, getLength, getPrimitiveVector, setContainerVar, setLength

    Methods 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, setClearName

    Methods inherited from class opendap.dap.DAPNode

    clone, cloneDAG, getClearName, getEncodedName, getParent, isProject, setEncodedName, setParent, setProject, setProjected

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface opendap.servers.ServerMethods

    isProject, setProject
  • Method Details

    • getVariable

      public ucar.nc2.Variable getVariable()
      Description copied from interface: HasNetcdfVariable
      get the underlying proxy
      Specified by:
      getVariable in interface HasNetcdfVariable
    • read

      public boolean read(String datasetName, Object specialO) throws IOException
      Read the data values (parameters are ignored). Use the start, stop and stride values, typically set by the constraint evaluator.
      Specified by:
      read in interface opendap.servers.ServerMethods
      Specified by:
      read in class opendap.servers.SDArray
      Parameters:
      datasetName - not used
      specialO - not used
      Returns:
      false (no more data to be read)
      Throws:
      IOException
      EOFException
    • setData

      public void setData(ucar.ma2.Array data)
      Description copied from interface: HasNetcdfVariable
      reset the underlying proxy
      Specified by:
      setData in interface HasNetcdfVariable
    • serialize

      public void serialize(DataOutputStream sink, ucar.ma2.StructureData sdata, ucar.ma2.StructureMembers.Member m) throws IOException
      Specified by:
      serialize in interface HasNetcdfVariable
      Throws:
      IOException