Example #1
0
    def test_gri_vs_ph(self):
        curves_gri = self.tt.read_curves_gri()
        bands = curves_gri.BandNames
        # bands = ('J','H','K')

        serial_spec = self.stella.read_series_spectrum(t_diff=1.)
        curves_ph = serial_spec.flux_to_curves(bands)

        models_dic = {'gri': curves_gri, 'ph': curves_ph}
        lc_types = {'gri': '--', 'ph': ':'}

        plt.matplotlib.rcParams.update({'font.size': 14})
        fig, ax = plt.subplots(1, 1)

        # lcf.plot_models_curves_fixed_bands(ax, models_dic, bands=('r','B','V'), lc_types=lc_types, ylim=(-13, -23), lw=3)
        lcf.plot_models_curves(ax, models_dic, lc_types=lc_types, ylim=(-10, -23), lw=3)
        plt.legend()
        plt.show()
Example #2
0
    def test_tt_vs_gri_vs_ph(self):
        curves_tt = self.tt.read_curves_tt()
        bands_tt = curves_tt.BandNames

        curves_gri = self.tt.read_curves_gri()
        bands_gri = curves_gri.BandNames

        bands = np.unique(np.array(bands_tt + bands_gri))

        serial_spec = self.stella.read_series_spectrum(t_diff=1.00001)
        curves_ph = serial_spec.flux_to_curves(bands)

        models_dic = {'tt': curves_tt, 'gri': curves_gri, 'ph': curves_ph}
        lc_types = {'tt': ':', 'gri': '--', 'ph': '-'}

        plt.matplotlib.rcParams.update({'font.size': 14})
        fig, ax = plt.subplots(1, 1)

        lcf.plot_models_curves(ax, models_dic, lc_types=lc_types, ylim=(-10, -19), lw=3)
        # lcf.plot_models_curves_fixed_bands(ax, models_dic, bands=('B', 'V'), lc_types=lc_types, ylim=(-13, -23), lw=3)
        plt.legend()
        plt.show()