Beispiel #1
0
    def get_theta_profile(self):
        """Function to calculate the theta profile.

        Parameters
        ----------
        None

        Returns
        -------
        Array of theta profile
        """
        theta_ = np.empty(self.pres.shape[0])
        for i in range(len(self.pres)):
            theta_[i] = thermo.theta(self.pres[i], self.tmpc[i])
        theta_ = thermo.ctok(theta_)
        return theta_
Beispiel #2
0
    def get_thetae_profile(self):
        '''
            Function to calculate the theta-e profile.

            Parameters
            ----------
            None

            Returns
            -------
            Array of theta-e profile
            '''
        thetae = np.empty(self.pres.shape[0])
        for i in range(len(self.pres)):
            thetae[i] = thermo.ctok(
                thermo.calc_thetae(self.pres[i], self.tmpc[i], self.dwpc[i]))
        return thetae