All Standard Plots

The full set of standard plots based on YAML files in subdirectories of KPF-Pipeline/static/tsdb_plot_configs/ are shown below

[1]:
from modules.quicklook.src.analyze_time_series import AnalyzeTimeSeries
import pandas as pd
from datetime import datetime
pd.set_option('display.max_rows', None)
%matplotlib inline
[2]:
db_path = 'kpf_ts.db' # name of database file
myTS = AnalyzeTimeSeries(db_path=db_path)
INFO: Starting AnalyzeTimeSeries
INFO: Starting KPF_TSDB
INFO: Jupyter Notebook environment detected.
INFO: Base data directory: /data/L0
INFO: Backend: sqlite
INFO: Path of database file: /code/KPF-Pipeline/docs/source/tutorials/kpf_ts.db
INFO: Metadata table exists.
INFO: Metadata table read.
INFO: Data tables exist.
[3]:
myTS.plot_all_quicklook(print_plot_names=True)
Plots available:
    'ccd_controller': CCD Controller Temperatures
    'ccd_readspeed': CCD Read Speed
    'ccd_temp': CCD Temperatures
    'ccd_dark_current': CCD Dark Current
    'ccd_readnoise': CCD Read Noise
    'xdisp_offset': CCD Cross Dispersion Offsets
    'autocal-flat_snr_relative': autocal-flat-all Relative SNR Ratio
    'good_orders_etalon': Good Orders - Etalon
    'good_orders_lfc': Good Orders - LFC
    'lamp_power': Power Meter Measurements of Lamp Brightness
    'lfc': LFC Diagnostics
    'saturated_etalon': Saturated Lines - Etalon
    'saturated_lfc': Saturated Lines - LFC
    'saturated_thar': Saturated Lines - ThAr
    'autocal-flat_flux_relative': autocal-flat-all Relative Flux Ratio
    'hcl': Hollow-Cathode Lamp Temperatures
    'autocal-flat_snr': autocal-flat-all SNR & Flux Ratio
    'saturated_une': Saturated Lines - Une
    'chamber_temp': KPF Spectrometer Temperatures
    'chamber_temp_detail': Chamber Temperature Detail
    'hallway_temp': KPF Hallway Temperature
    'spatial_gradients': KPF Spectrometer Spatial Temperature Gradients
    'drphash': KPF-Pipeline Commit Hash
    'master_age': Ages of Master Files
    'drptag': KPF-Pipeline Version Number
    'files_missing': 2D/L1/L2 Files Missing
    'nobs_all_sources': All Sources - Number of Observations
    'nobs_bias': Bias autocal - Number of Observations
    'nobs_dark': Dark autocal - Number of Observations
    'nobs_flat': Flat autocal - Number of Observations
    'nobs_lfc': LFC autocal - Number of Observations
    'nobs_star': Stars - Number of Observations
    'nobs_sun': SoCal - Number of Observations
    'guiding': Guiding Errors & Bias
    'seeing': Seeing
    'bcvel': Barycentric Variations
    'guider_images': Guider Images
    'sun_moon': Separation of Sun and Moon from Target
    'observing_snr': Observing SNR & Flux Ratio for Stars
    'junk_status': Junk Status
    'qc_em': QC - Exposure Meter
    'qc_flat': QC - Flat Metrics
    'qc_kwds': QC - TARG Keywords
    'qc_lfc': QC - LFC Metrics
    'qc_low_flux': QC - Low Dark and Bias Flux
    'qc_monotonic_wls': QC - Monotonic WLS in L1
    'qc_ntp': QC - Network Time Protocol (NTP)
    'qc_pos_2d_snr': QC - Not Negative 2D SNR
    'qc_time_check': QC - L0 and L2 Times Consistent
    'qc_wls': QC - Wavelength Solution Metrics
    'qc_cals': QC - Master File Ages
    'qc_agitator': QC - Agitator Running
    'qc_master_age': QC - Master File Ages
    'qc_guider': QC - Guider Performance
    'qc_data_kwds': QC - Data and Keywords Present
    'qc_etalon': QC - Etalon Metrics
    'qc_goodread': QC - Good Read Metric
    'qc_observing': QC - Observing
    'autocal_erv': LFC, ThAr, & Etalon ERVs (autocal)
    'autocal_etalon_rv': Etalon RVs (autocal)
    'autocal_rv': LFC, ThAr, & Etalon RVs (autocal)
    'socal_rv': SoCal RVs
    'socal_snr': SoCal SNR & Flux Ratio
    'wls_median': WLS Median Difference
    'wls_stdev': WLS Standard Deviation of (L1 - L1_ref)
    'fiber_temp': Fiber Temperatures
    'etalon': Etalon Temperatures
    'hk_temp': Ca H&K Spectrometer Temperatures
    'agitator': KPF Agitator

One can generate all plots from the plot_all_quicklook_daterange() method with a single call.

[4]:
myTS = AnalyzeTimeSeries(db_path=db_path)
myTS.plot_all_quicklook(datetime(2024, 10, 3), interval='day', show_plot=True, verbose=True)
INFO: Starting AnalyzeTimeSeries
INFO: Starting KPF_TSDB
INFO: Jupyter Notebook environment detected.
INFO: Base data directory: /data/L0
INFO: Backend: sqlite
INFO: Path of database file: /code/KPF-Pipeline/docs/source/tutorials/kpf_ts.db
INFO: Metadata table exists.
INFO: Metadata table read.
INFO: Data tables exist.
INFO: AnalyzeTimeSeries.plot_all_quicklook: making ccd_controller
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_1.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making ccd_readspeed
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_3.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making ccd_temp
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_5.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making ccd_dark_current
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_7.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making ccd_readnoise
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_9.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making xdisp_offset
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_11.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making autocal-flat_snr_relative
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_13.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making good_orders_etalon
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_15.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making good_orders_lfc
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_17.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making lamp_power
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_19.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making lfc
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_21.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making saturated_etalon
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_23.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making saturated_lfc
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_25.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making saturated_thar
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_27.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making autocal-flat_flux_relative
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_29.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making hcl
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_31.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making autocal-flat_snr
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_33.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making saturated_une
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_35.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making chamber_temp
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_37.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making chamber_temp_detail
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_39.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making hallway_temp
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_41.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making spatial_gradients
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_43.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making drphash
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_45.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making master_age
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_47.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making drptag
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_49.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making files_missing
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_51.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making nobs_all_sources
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_53.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making nobs_bias
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_55.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making nobs_dark
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_57.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making nobs_flat
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_59.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making nobs_lfc
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_61.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making nobs_star
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_63.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making nobs_sun
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_65.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making guiding
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_67.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making seeing
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_69.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making bcvel
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_71.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making guider_images
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_73.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making sun_moon
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_75.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making observing_snr
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_77.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making junk_status
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_79.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_em
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_81.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_flat
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_83.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_kwds
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_85.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_lfc
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_87.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_low_flux
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_89.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_monotonic_wls
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_91.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_ntp
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_93.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_pos_2d_snr
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_95.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_time_check
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_97.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_wls
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_99.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_cals
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_101.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_agitator
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_103.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_master_age
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_105.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_guider
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_107.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_data_kwds
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_109.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_etalon
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_111.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_goodread
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_113.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making qc_observing
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_115.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making autocal_erv
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_117.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making autocal_etalon_rv
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_119.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making autocal_rv
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_121.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making socal_rv
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_123.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making socal_snr
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_125.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making wls_median
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_127.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making wls_stdev
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_129.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making fiber_temp
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_131.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making etalon
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_133.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making hk_temp
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_135.png
INFO: AnalyzeTimeSeries.plot_all_quicklook: making agitator
../_images/tutorials_AnalyzeTimeSeries_All_Plots_5_137.png