ucar.unidata.view.sounding
Class MixingRatioTemperatureCalculator

java.lang.Object
  extended by ucar.unidata.view.sounding.MixingRatioTemperatureCalculator
All Implemented Interfaces:
TemperatureCalculator

public class MixingRatioTemperatureCalculator
extends Object
implements TemperatureCalculator

Provides support for calculating temperatures along a saturation mixing-ratio.

Version:
$Id: MixingRatioTemperatureCalculator.java,v 1.10 2005/05/13 18:33:33 jeffmc Exp $
Author:
Steven R. Emmerson

Constructor Summary
MixingRatioTemperatureCalculator(Real saturationPressure, Real saturationTemperature)
          Constructs from a saturation pressure and temperature.
 
Method Summary
 Real nextTemperature(Real nextPressure)
          Returns the next temperature associated with the next pressure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MixingRatioTemperatureCalculator

public MixingRatioTemperatureCalculator(Real saturationPressure,
                                        Real saturationTemperature)
                                 throws TypeException,
                                        VisADException,
                                        RemoteException
Constructs from a saturation pressure and temperature.

Parameters:
saturationPressure - The saturation pressure.
saturationTemperature - The saturation temperature.
Throws:
TypeException - Something has the wrong type.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

nextTemperature

public Real nextTemperature(Real nextPressure)
                     throws TypeException,
                            UnitException,
                            VisADException,
                            RemoteException
Returns the next temperature associated with the next pressure.

Specified by:
nextTemperature in interface TemperatureCalculator
Parameters:
nextPressure - The next pressure.
Returns:
The next temperature.
Throws:
UnitException - Invalid argument unit.
TypeException - Invalid argument type.
VisADException - VisAD failure.
RemoteException - Java RMI failure.