Class ProfileFeatureCell

java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.ProfileFeatureCell
Direct Known Subclasses:
LfcCell, LnbCell

public abstract class ProfileFeatureCell extends ComputeCell
Computes the level of a feature from an atmospheric buoyancy-profile.
Version:
$Revision: 1.7 $ $Date: 2005/05/13 18:33:35 $
Author:
Steven R. Emmerson
  • Field Details

    • noData

      protected static final Real noData
      The output "missing data" value.
  • Constructor Details

    • ProfileFeatureCell

      public ProfileFeatureCell(String name, DataReference buoyProfileRef) throws VisADException, RemoteException
      Constructs from data references. The input buoyancy profile must be ascending.
      Parameters:
      name - The name of the cell.
      buoyProfileRef - The input buoyancy profile reference.
      Throws:
      VisADException - if a VisAD failure occurs.
      RemoteException - if a Java RMI failure occurs.
  • Method Details

    • interpolatePres

      protected static final Real interpolatePres(double topPres, double topBuoy, double botPres, double botBuoy, Unit presUnit) throws VisADException
      Interpolates the pressure at zero buoyancy from bracketing pressures and buoyancies. The buoyancies must not have the same sign.
      Parameters:
      topPres - The upper pressure.
      topBuoy - The buoyancy at the upper pressure.
      botPres - The lower pressure.
      botBuoy - The buoyancy at the lower pressure.
      presUnit - The unit of pressure.
      Returns:
      The interpolated pressure at zero buoyancy.
      Throws:
      VisADException - if a VisAD failure occurs.