public final class LayerMeanCell extends ComputeCell
Constructor and Description |
---|
LayerMeanCell(visad.DataReference proRef,
visad.DataReference lowerRef,
visad.DataReference upperRef,
visad.Real noData)
Constructs from a reference to the atmospheric profile, references to
the lower and upper limits of the layer, and a missing-data value.
|
Modifier and Type | Method and Description |
---|---|
protected visad.Data |
compute(visad.Data[] datums)
Computes the layer mean value.
|
visad.DataReference |
getMeanPresRef()
Returns the mean pressure within the just-computed layer.
|
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
public LayerMeanCell(visad.DataReference proRef, visad.DataReference lowerRef, visad.DataReference upperRef, visad.Real noData) throws visad.VisADException, java.rmi.RemoteException
proRef
- The atmospheric profile reference.lowerRef
- The lower layer limit.upperRef
- The upper layer limit.noData
- The missing data value.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.protected visad.Data compute(visad.Data[] datums) throws visad.TypeException, visad.VisADException, java.rmi.RemoteException
compute
in class ComputeCell
datums
- The input data. datums[0]
is
the profile; datums[1]
is the
lower layer limit; and datums[2]
is the upper layer limit.java.lang.ClassCastException
- if an input data reference has the wrong
type of data object.visad.TypeException
- if a VisAD data object has the wrong type.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public visad.DataReference getMeanPresRef()