def __init__(self, relative_humidity=0.77, qStrat=5.E-6, **kwargs):
        '''Compute water vapor mixing ratio profile
        Assuming constant relative humidity.

        relative_humidity is the specified RH.
        Same value is applied everywhere.
        qStrat is the minimum specific humidity, ensuring that there is
        some water vapor in the stratosphere.

        The attribute RH_profile can be modified to set different
        vertical profiles of relative humidity
        (see daughter class ManabeWaterVapor() ).'''
        super(FixedRelativeHumidity, self).__init__(**kwargs)
        newinput = ['relative_humidity',
                    'qStrat',
                    'RH_profile',]
        self.declare_input(newinput)
        self.relative_humidity = relative_humidity
        self.qStrat = qStrat
        self.RH_profile = self.relative_humidity * np.ones_like(self.Tatm)
        #  go ahead and set the initial q based on initial temperature
        self.add_diagnostic('q', 0.*self.Tatm)
        self._compute()
def __init__ ( self , relative_humidity = 0.77 , qStrat = 5.E-6 , ** kwargs ) : super ( FixedRelativeHumidity , self ) . __init__ ( ** kwargs ) newinput = [ 'relative_humidity' , 'qStrat' , 'RH_profile' , ] self . declare_input ( newinput ) self . relative_humidity = relative_humidity self . qStrat = qStrat self . RH_profile = self . relative_humidity * np . ones_like ( self . Tatm ) self . add_diagnostic ( 'q' , 0. * self . Tatm ) self . _compute ( )
Compute water vapor mixing ratio profile
        Assuming constant relative humidity.

        relative_humidity is the specified RH.
        Same value is applied everywhere.
        qStrat is the minimum specific humidity, ensuring that there is
        some water vapor in the stratosphere.

        The attribute RH_profile can be modified to set different
        vertical profiles of relative humidity
        (see daughter class ManabeWaterVapor() ).