Ejemplo n.º 1
0
 def model_fit(self, theta, wave):
     line = self.line
     theta_prime=map_theta2list(theta,self.nclump,self.ntransition)
     ss3, flx = r.create_model_simple(theta_prime, wave, line)
     # Convolve data
     fmodel = convolve(flx, self.kernel ,boundary='extend')  
     return fmodel, ss3
Ejemplo n.º 2
0
 def model_flux_curvefit(self,wave,*params):
     theta_temp=np.zeros((len(params),))
     for i in range(0, len(params)):
         theta_temp[i] = params[i]
     line = self.line
     theta_prime=map_theta2list(theta_temp,self.nclump,self.ntransition)
     ss3, flx = r.create_model_simple(theta_prime, wave, line)
     # Convolve data
     fmodel = convolve(flx, self.kernel ,boundary='extend')  
     
     return fmodel
Ejemplo n.º 3
0
    def model_unconvolved(self, theta, wave):       
        line = self.line
        theta_prime=map_theta2list(theta,self.nclump,self.ntransition)
        ss3, flx = r.create_model_simple(theta_prime, wave, line)

        return flx