Exemplo n.º 1
0
    def __init__(self, Conf_Folder, LinesLogHeader_Name):

        #Import the library with the fitting algorithms with gaussians
        Fitting_Gaussians.__init__(self)
        LineMesurer_Log.__init__(self, Conf_Folder, LinesLogHeader_Name)
        
        #Line definition
        self.Current_Label          = None
        self.Current_Ion            = None
        self.Current_TheoLoc        = None

        #Textfile where we store our data
        self.Current_LinesLog       = None
                              
        #Vector we use to store the 6 wavelengths which define the emision line location and the two continuums
        self.Selections             = []
        
        #Indexes for the "Selections vector" wavelengths              
        self.ind1                   = None      #Wave1
        self.ind2                   = None      #Wave2
        self.ind3                   = None      #Wave3
        self.ind4                   = None      #Wave4
        self.ind5                   = None      #Wave5
        self.ind6                   = None      #Wave6
        
        #New design
        self.BoxSize                = 70
        
        #Dictionary to store the data
        self.Parameter_dict = OrderedDict.fromkeys(self.ColumnHeaderVector)
        
        #Extra mechanisms for testing the wide component on Halpha      
        self.force_WD = True               
Exemplo n.º 2
0
    def __init__(self, Conf_Folder, LinesLogHeader_Name):

        #Import the library with the fitting algorithms with gaussians
        Fitting_Gaussians.__init__(self)
        LineMesurer_Log.__init__(self, Conf_Folder, LinesLogHeader_Name)
        
        #Line definition
        self.Current_Label          = None
        self.Current_Ion            = None
        self.Current_TheoLoc        = None

        #Textfile where we store our data
        self.Current_LinesLog       = None
                                      
        #Without a graphical interface we need a dataframe with the possible blended lines
        self.blendedLines_Table()
                
        #New design
        self.BoxSize = 70
        
        #Dictionary to store the data
        self.Parameter_dict = OrderedDict.fromkeys(self.ColumnHeaderVector)
        
        #Extra mechanisms for testing the wide component on Halpha      
        self.force_WD = True         
        
        #Parameters to save in log #WARNING: Missing emission line type
        self.saving_parameters_list = ['Ion',
                                  'lambda_theo',
                                  'lambda_obs',
                                  'flux_intg',
                                  'flux_intg_er',
                                  'flux_gauss', 
                                  'flux_gauss_er', 
                                  'eqw',
                                  'eqw_er',
                                  'A',
                                  'A_er',
                                  'mu',
                                  'mu_er',
                                  'sigma',
                                  'sigma_er',
                                  'zerolev_mean', #continuum linear value at line region center
                                  'zerolev_std',
                                  'zerolev_width',                                  
                                  'm_zerolev',
                                  'n_zerolev',                                  
                                  'Wave1',
                                  'Wave2',
                                  'Wave3',
                                  'Wave4',
                                  'Wave5',
                                  'Wave6',
                                  'blended_check',
                                  'line_number',
                                  'group_label',
                                  'add_wide_component',
                                  'fit_routine']