Пример #1
0
    else:
        if eventovershoots is not None:

            figure4 = bkg_plots(etable, data, gtitable, args, mktable,
                                data.eventshoottable)
        else:
            figure4 = bkg_plots(etable, data, gtitable, args, mktable,
                                data.hkshoottable)
        figure4.set_size_inches(16, 12)
        if args.save:
            log.info('Writing bkg plot {0}'.format(basename))
            figure4.savefig('{0}_bkg.png'.format(basename), dpi=100)

# Engineering plots are reset rates, count rates by detector, and deadtime
if args.eng:
    figure1 = eng_plots(etable, args, reset_rates, filttable)
    figure1.set_size_inches(16, 12)
    if args.save:
        log.info('Writing eng plot {0}'.format(basename))
        if args.filtall:
            figure1.savefig('{0}_eng_clean_{1:.1f}-{2:.1f}keV.png'.format(
                basename, args.emin, args.emax),
                            dpi=100)
        else:
            figure1.savefig('{0}_eng.png'.format(basename), dpi=100)

# Science plot is light curve, spectrum, pulse profile, and PHA ratio plot (or poweer spectrum)
if args.sci:
    # Make science plots using filtered events
    if len(filttable) == 0:
        log.error('No events left in filtered table! Aborting!')
Пример #2
0
    #else:
    #     if eventovershoots is not None:
    #         figure4 = bkg_plots(etable, data, gtitable, args, mktable, data.eventshoottable)
    #     else:
    #         figure4 = bkg_plots(etable, data, gtitable, args, mktable, data.hkshoottable)

    figure4 = bkg_plots(etable, gtitable, args, mktable, ovbintable)
    figure4.set_size_inches(16, 12)
    if args.save:
        log.info('Writing bkg plot {0}'.format(basename))
        figure4.savefig('{0}_bkg.png'.format(basename), dpi=100)

# Engineering plots are reset rates, count rates by detector, and deadtime
if args.eng:
    # figure1 = eng_plots(etable, args, reset_rates, filttable, gtitable)
    figure1 = eng_plots(etable, args, mktable, filttable, gtitable)
    figure1.set_size_inches(16, 12)
    if args.save:
        log.info('Writing eng plot {0}'.format(basename))
        if args.filtall:
            figure1.savefig('{0}_eng_{1:.1f}-{2:.1f}keV.png'.format(
                basename, args.emin, args.emax),
                            dpi=100)
        else:
            figure1.savefig('{0}_eng.png'.format(basename), dpi=100)

# Science plot is light curve, spectrum, pulse profile, and PHA ratio plot (or poweer spectrum)
if args.sci:
    # Make science plots using filtered events
    if len(filttable) == 0:
        log.error('No events left in filtered table! Aborting!')