Exemplo n.º 1
0
    def generate_plots(self):
        interface_main.span_window()
        print("... generating plots")

        plot_functions.plot_spectra(self)

        return
Exemplo n.º 2
0
    def generate_output_files(self):
        interface_main.span_window()
        print("... generating outputs")

        final = pd.concat(
            [spec.get_output_row() for spec in self.spectra_array])

        final.to_csv("output/" + self.io_params['output_name'] + "_out.csv",
                     index=False)
Exemplo n.º 3
0
    def archetype_classification(self):
        interface_main.span_window()
        print('... determining archetype classification')

        [
            interface_main.archetype_classify_MC(spec)
            for spec in self.spectra_array
        ]

        return
Exemplo n.º 4
0
    def mcmc_determination(self):
        ### Main iterative method for the mcmc_determination
        interface_main.span_window()
        print('... performing MCMC determinations')

        [spec.prepare_regions() for spec in self.spectra_array]

        [
            interface_main.mcmc_determination(spec, mode='COARSE')
            for spec in self.spectra_array
        ]

        print("... performing kde determinations")
        [
            interface_main.generate_kde_params(spec, mode="COARSE")
            for spec in self.spectra_array
        ]

        interface_main.span_window()

        print("... running refined mcmc")
        [
            interface_main.mcmc_determination(spec, mode='REFINE')
            for spec in self.spectra_array
        ]

        print("... finalizing kde determinations")
        [
            interface_main.generate_kde_params(spec, mode='REFINE')
            for spec in self.spectra_array
        ]

        interface_main.span_window()
        print("... complete")
        interface_main.span_window()
        return
Exemplo n.º 5
0



interface_main.print_greeting()

print("... initializing spectra batch")
spec_batch = Batch(spectra_path, param_path, io_param_path)

### load spectra
spec_batch.load_params()
spec_batch.load_spectra()
spec_batch.set_params()


interface_main.span_window()

spec_batch.radial_correct()
spec_batch.build_frames()


### normalize with GISIC
interface_main.span_window()


spec_batch.normalize()

#### Preliminaries
spec_batch.set_KP_bounds()
spec_batch.set_carbon_mode()