Package ucar.unidata.view.sounding
Class AddCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.AddCell
Computes the sum of two data objects.
- Version:
- $Revision: 1.5 $ $Date: 2005/05/13 18:33:21 $
- Author:
- Steven R. Emmerson
-
Constructor Summary
ConstructorsConstructorDescriptionAddCell
(DataReference ref1, DataReference ref2, Data noData) Constructs from references to two data objects and a missing data value. -
Method Summary
Methods inherited from class ucar.unidata.view.sounding.ComputeCell
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
-
Constructor Details
-
AddCell
public AddCell(DataReference ref1, DataReference ref2, Data noData) throws VisADException, RemoteException Constructs from references to two data objects and a missing data value.- Parameters:
ref1
- The first data reference.ref2
- The second data reference.noData
- The missing data value.- Throws:
VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
-
Method Details
-
compute
Computes the sum.- Specified by:
compute
in classComputeCell
- Parameters:
datums
- The input data.datums[0]
is the first data object anddatums[1]
is the second.- Returns:
- The maximum pressure of the profile.
- Throws:
ClassCastException
- if an input data reference has the wrong type of data object.TypeException
- if a VisAD data object has the wrong type.VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-