Package ucar.unidata.view.sounding
Class ProfileCombinerCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.ProfileCombinerCell
Combines two profiles together. The profiles must have the type specified
during construction. The actual units in the domain and range of the
profiles must be identical.
- Version:
- $Revision: 1.5 $ $Date: 2005/05/13 18:33:35 $
- Author:
- Steven R. Emmerson
-
Constructor Summary
ConstructorsConstructorDescriptionProfileCombinerCell
(DataReference pro1Ref, DataReference pro2Ref, RealType rangeType) Constructs from data references. -
Method Summary
Methods inherited from class ucar.unidata.view.sounding.ComputeCell
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
-
Constructor Details
-
ProfileCombinerCell
public ProfileCombinerCell(DataReference pro1Ref, DataReference pro2Ref, RealType rangeType) throws VisADException, RemoteException Constructs from data references.- Parameters:
pro1Ref
- The input first profile reference.pro2Ref
- The input second profile reference.rangeType
- The type of the range of the output profile.- Throws:
VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
-
Method Details
-
compute
Computes the combined profile of two input profiles.- Specified by:
compute
in classComputeCell
- Parameters:
datums
- The input data in the same order as during construction:datums[0]
is the first profile anddatums[1]
is the second profile.- Returns:
- The corresponding combined 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.
-