asp_plot.report#
Attributes#
Classes#
FPDF subclass with custom header and footer for ASP reports. |
|
A PDF page for the pc_align-vs-ICESat-2 alignment workflow. |
|
Metadata about the output DEM for the report title page. |
|
A section of the PDF report containing a figure with title and caption. |
Functions#
|
Compile a PDF report with ASP processing results and plots. |
Module Contents#
- class asp_plot.report.ASPReportPDF(report_title='ASP Output Quality Report')#
Bases:
fpdf.FPDFFPDF subclass with custom header and footer for ASP reports.
- header()#
- report_title = 'ASP Output Quality Report'#
- class asp_plot.report.AlignmentReportPage#
A PDF page for the pc_align-vs-ICESat-2 alignment workflow.
Each page carries (optionally) a small kwargs table, a single-row alignment-stats table, a description paragraph, a status/message block, and an optional figure with caption below. Rendered by compile_report alongside ReportSection entries. Body text blocks are rendered left-aligned (not justified) to avoid large inter-word gaps.
- parameters#
Alignment kwargs passed to
Altimetry.align_and_evaluate. Rendered as a small two-column table above the stats table. Use an empty dict to skip.- Type:
- stats_row#
Single-row alignment statistics (e.g. p16_beg/p50_beg/… from
pc_align_report). Rendered as a horizontal 1-row table with column headers. Values are formatted to two significant figures. Use an empty dict to skip.- Type:
- description#
Long-form explanation of pc_align and the meaning of each column in the parameters and stats tables. Rendered between the stats table and the status message. Empty string to skip.
- Type:
- status_message#
Short status paragraph (e.g. path to aligned DEM, or a note that alignment was skipped / produced no significant improvement).
- Type:
- class asp_plot.report.ReportMetadata#
Metadata about the output DEM for the report title page.
- acquisition_dates#
Scene acquisition date strings (e.g. “2017-07-31 19:07:28 UTC”) when recoverable from scene metadata. Empty list if not found.
- class asp_plot.report.ReportSection#
A section of the PDF report containing a figure with title and caption.
- asp_plot.report.compile_report(sections, processing_parameters_dict, report_pdf_path, report_title='ASP Output Quality Report', report_metadata=None, report_command=None)#
Compile a PDF report with ASP processing results and plots.
Creates a structured PDF report with a title page, figure sections with captions, and a processing parameters appendix.
- Parameters:
sections (list of ReportSection) – Ordered list of report sections, each containing a title, image path, and optional caption.
processing_parameters_dict (dict) – Dictionary containing processing parameters from ASP logs.
report_pdf_path (str) – Output path for the PDF report.
report_title (str, optional) – Title for the report. Default is “ASP Output Quality Report”.
report_metadata (ReportMetadata, optional) – DEM metadata for the title page summary table. Default is None.
report_command (str, optional) – The asp_plot CLI command used to generate this report. Default is None.
- Returns:
Generates a PDF report at the specified path.
- Return type:
None
Notes
Required keys in processing_parameters_dict: - processing_timestamp: When the processing was performed - reference_dem: Path to reference DEM used - bundle_adjust: Bundle adjustment command - bundle_adjust_run_time: Time to run bundle adjustment - stereo: Stereo command - stereo_run_time: Time to run stereo - point2dem: Point2dem command - point2dem_run_time: Time to run point2dem
- asp_plot.report.logger#