sonification.dataimport.visbards_resourcetoolkit.repository.resource
Class VariableReaderSingle

java.lang.Object
  extended by sonification.dataimport.visbards_resourcetoolkit.repository.resource.VariableReaderSingle
All Implemented Interfaces:
VariableReader

public class VariableReaderSingle
extends java.lang.Object
implements VariableReader


Constructor Summary
VariableReaderSingle(gsfc.nssdc.cdf.CDF cdf, java.lang.String source, boolean scalar)
           
 
Method Summary
 void clearCache()
          Clears the read-ahead cache of this reader.
 double[] getScalar(long recnum)
          Returns the scalar data (only appropriate if scalar)
 double[] getVector(long recnum)
          Returns the vector data (only appropriate if vector)
 boolean isScalar()
          Returns true if this variable is a scalar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableReaderSingle

public VariableReaderSingle(gsfc.nssdc.cdf.CDF cdf,
                            java.lang.String source,
                            boolean scalar)
                     throws SonificationException
Throws:
SonificationException
Method Detail

isScalar

public boolean isScalar()
Description copied from interface: VariableReader
Returns true if this variable is a scalar.

Specified by:
isScalar in interface VariableReader

getVector

public double[] getVector(long recnum)
Description copied from interface: VariableReader
Returns the vector data (only appropriate if vector)

Specified by:
getVector in interface VariableReader

getScalar

public double[] getScalar(long recnum)
Description copied from interface: VariableReader
Returns the scalar data (only appropriate if scalar)

Specified by:
getScalar in interface VariableReader

clearCache

public void clearCache()
Description copied from interface: VariableReader
Clears the read-ahead cache of this reader.

Specified by:
clearCache in interface VariableReader