/** * Sets the input pressure. The data is not copied. * * @param pressure The input pressure. * @throws NullPointerException if the argument is <code>null</code>. * @throws TypeException if the pressure has the wrong type. * @throws VisADException if a VisAD failure occurs. * @throws RemoteException if a Java RMI failure occurs. */ public synchronized void setPressure(Real pressure) throws TypeException, VisADException, RemoteException { Util.vetType(ucar.visad.quantities.AirPressure.getRealType(), pressure); this.pressure = pressure; dirty = true; }
static { Real mLfc = null; try { mLfc = (Real) RealType.getRealType( "LevelOfFreeConvection", AirPressure.getRealType().getDefaultUnit()) .missingData(); } catch (Exception e) { System.err.print("Couldn't initialize class: "); e.printStackTrace(); System.exit(1); } missingLfc = mLfc; }
static { Real mdp = null; Real mp = null; Real mws = null; try { mdp = (Real) DewPoint.getRealType().missingData(); mp = (Real) AirPressure.getRealType().missingData(); mws = (Real) WaterVaporMixingRatio.getRealType().missingData(); } catch (Exception e) { System.err.print("Couldn't initialize class: "); e.printStackTrace(); System.exit(1); } missingDewPoint = mdp; missingPres = mp; missingWsat = mws; }
/** * Constructs from a MathType for the range. * * @param rangeType The MathType of the range. * @throws VisADException Couldn't create necessary VisAD object. */ protected AirTemperatureProfile(MathType rangeType) throws VisADException { super(AirPressure.getRealTupleType(), rangeType); }
/** * Constructs from a MathType for the domain. * * @throws VisADException Couldn't create necessary VisAD object. */ protected PolarHorizontalWindOfPressure() throws VisADException { super(AirPressure.getRealTupleType()); }