create_output.py Functions
A function to create output files (elevation charts) from the ephemeris data.
- obsfind.create_output.make_elevation_charts_pdf(eph_cut, twilight_list, target_plot_info, elevation_limit, mpc_code, base_out_name='')
Creates elevation charts for each night in the ephemeris DataFrame and saves them as a PDF.
- Inputs
eph_cut : DataFrame with ephemerides for each target. twilight_list : DataFrame with twilight times for each night. target_plot_info : DataFrame with target names, markers, and colours. elevation_limit : Minimum elevation limit for plotting. mpc_code : MPC code of the observatory. base_out_name : Base name for the output files (default: ‘’).
- Output
PDF file with elevation charts for each night.
- obsfind.create_output.make_summary_charts_pdf(night_summaries, target_plot_info, base_out_name='')
Generates summary charts for all targets and compiles them into a PDF.
- Inputs
- night_summariesDataFrame containing nightly summary data for each target,
used to generate the plots.
- target_plot_infoDataFrame mapping targets to plot colours and markers.
Must contain ‘targets’, ‘colours’, and ‘markers’ columns.
base_out_name : (optional) String prefix for the output PDF filename.
- Output
Saves a PDF file in the current directory named ‘<base_out_name>summary.pdf’, containing:
A first page with the all-target summary chart.
One page per target (excluding the Moon) with its corresponding chart.
Temporary PNG plot files are created in a temporary directory and deleted automatically after the PDF is built.
- obsfind.create_output.summarize_target(group, twilight_info=None, tar_name=None)
Summarizes the ephemeris data for a target by calculating median values.
- Inputs
group : DataFrame group for a specific target. twilight_info : Optional DataFrame with twilight times for the night.
- Output
Series with median values for the target.