Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
0037501
add: tests CLI + list topo
marinebcht Apr 9, 2026
2dd3958
doc + topo inputs list + cli test OK
marinebcht Apr 9, 2026
8fe01c0
add: tests cli
marinebcht Apr 10, 2026
3361538
add: input = dict in topo
marinebcht Apr 10, 2026
7c90b01
fix: test load dem with new set_dem()
marinebcht Apr 13, 2026
e8317f6
fix: minors
marinebcht Apr 13, 2026
337eb2b
fix: from/to_vcrs to set_vcrs
marinebcht Apr 14, 2026
27497cd
fix: minors
marinebcht Apr 14, 2026
d451985
add: test: vcrs (skipped)
marinebcht Apr 14, 2026
8442828
fix: CI error
marinebcht Apr 14, 2026
5d43afc
fix: output pres @terminal @topo workflow
marinebcht Apr 14, 2026
5bd138c
fix: review Valentine
marinebcht Apr 21, 2026
d79f039
fix: windows size fractal + load dem force + wip tiff/png
marinebcht Apr 21, 2026
738f96c
fix: window_size_fractal = 13
marinebcht Apr 22, 2026
7468810
add: no more extra_info @att + add to_repro/crs
marinebcht Apr 27, 2026
199fbdf
little fixes
marinebcht Apr 27, 2026
c8ce0d9
wip: doc + generate_pdf true/false
marinebcht Apr 27, 2026
53d8cf8
tests: generate_pdf + raster after reprojection @ topo
marinebcht Apr 27, 2026
1b6fc4c
fix: dem_* to elev_reprojected.tif
marinebcht Apr 27, 2026
c01182a
end: tests + docs minus crs @ topo part
marinebcht Apr 27, 2026
8a49ef7
fix: retours Valentine/Romain; add test in test_terrain
marinebcht May 4, 2026
23cc0d9
add: prop retro (to_crs to crs, remove output_grid % plot)
marinebcht May 6, 2026
da5cc94
skip: test to complete in a new issue + doc
marinebcht May 6, 2026
bc85ed9
fix: report and doc pres
marinebcht May 11, 2026
f9c6d7c
fix: test multi when window_size and window_size_fractal needed
marinebcht May 11, 2026
8c5dd64
fix: No such file or directory: diff_elev_coreg_tba_map.png
marinebcht May 29, 2026
4ae7ec0
remove size window fractal
marinebcht May 29, 2026
629c062
test doc
marinebcht May 29, 2026
0174111
fix: CI tests/test_workflows/test_cli.py::test_invalid_parameters
marinebcht Jun 1, 2026
1754914
test CI has/has not weasy print
marinebcht Jun 1, 2026
e8eb6c2
test CI has/has not weasy print
marinebcht Jun 1, 2026
2358976
add: doc reports workflow
marinebcht Jun 2, 2026
4223770
force new version weasyprint
marinebcht Jun 2, 2026
a30b4d9
force new version weasyprint
marinebcht Jun 2, 2026
f71f129
force new version weasyprint
marinebcht Jun 2, 2026
ffa7ef3
test CI: print lib_gobject_name
marinebcht Jun 4, 2026
fa9fc2b
add: row function
marinebcht Jun 4, 2026
aba0e70
add figure to pdf
marinebcht Jun 4, 2026
eda0300
remove tests for CI
marinebcht Jun 4, 2026
784be23
add: test _has_weasyprint
marinebcht Jun 5, 2026
7f21417
Merge remote-tracking branch 'origin/854_enhancements_CLI_None' into …
marinebcht Jun 8, 2026
5ea86e2
add: plots to the report (modulo level) + adapt generate_plot_with_pr…
marinebcht Jun 8, 2026
890db13
change plot profiles positions + doc
marinebcht Jun 8, 2026
896d64e
add: min/max + fix name fig
marinebcht Jun 9, 2026
352c733
add: print in CI
marinebcht Jun 9, 2026
a0cd4ee
gestion reports doc
marinebcht Jun 9, 2026
e4c09f7
Remove PDF build in documentation (#939)
rhugonnet Mar 16, 2026
0cdf8de
Bump conda-incubator/setup-miniconda from 3 to 4 (#952)
dependabot[bot] Apr 27, 2026
a42a095
Blockwise documentation (#936)
ould-a Apr 28, 2026
1bc47a5
add: window_size_fractal
marinebcht Jun 1, 2026
485251b
add: report
marinebcht Jun 10, 2026
c57b5a7
add: report
marinebcht Jun 10, 2026
ca6426f
add: rebase
marinebcht Jun 10, 2026
d94c01c
fix: rebase windows_size_factal
marinebcht Jun 11, 2026
4a47481
fix: rebase windows_size_factal
marinebcht Jun 11, 2026
ac1a1f8
fix: rebase windows_size_factal
marinebcht Jun 11, 2026
c8f7377
fix: rebase reports
marinebcht Jun 11, 2026
d4110a0
add: debug CI
marinebcht Jun 11, 2026
f58981d
add: debug CI
marinebcht Jun 11, 2026
eb8aa4e
add: debug CI
marinebcht Jun 11, 2026
20831b7
add: debug CI
marinebcht Jun 11, 2026
f3dac03
add: debug CI
marinebcht Jun 11, 2026
f80b7e9
add: debug CI
marinebcht Jun 11, 2026
6ecead7
add: debug CI
marinebcht Jun 11, 2026
3e36cfa
add: debug CI
marinebcht Jun 11, 2026
ca8edb0
add: debug CI
marinebcht Jun 11, 2026
fd6a822
add: debug CI
marinebcht Jun 11, 2026
0f14b98
add: debug CI
marinebcht Jun 11, 2026
afdf2e0
add: debug CI
marinebcht Jun 11, 2026
574077e
add: debug CI
marinebcht Jun 11, 2026
b71e9b3
add: debug CI
marinebcht Jun 11, 2026
a347a6a
add: debug CI
marinebcht Jun 11, 2026
e6956d7
add: debug CI
marinebcht Jun 11, 2026
4449318
add: debug CI
marinebcht Jun 11, 2026
335f2ad
add: debug CI
marinebcht Jun 11, 2026
4ac8265
add: debug CI
marinebcht Jun 11, 2026
f989854
add: debug CI
marinebcht Jun 11, 2026
7402f00
add: debug CI
marinebcht Jun 11, 2026
cc243bc
add: debug CI
marinebcht Jun 11, 2026
923ab65
add: debug CI
marinebcht Jun 11, 2026
09931b0
add: debug CI
marinebcht Jun 11, 2026
d045792
Revert "add: debug CI"
marinebcht Jun 11, 2026
fa3543d
Revert "add: debug CI"
marinebcht Jun 11, 2026
1c98236
Revert "add: debug CI"
marinebcht Jun 11, 2026
77b46db
Revert "add: debug CI"
marinebcht Jun 11, 2026
e87ed5c
Revert "add: debug CI"
marinebcht Jun 11, 2026
02e4595
Revert "add: debug CI"
marinebcht Jun 11, 2026
76d5b71
Revert "add: debug CI"
marinebcht Jun 11, 2026
e45967e
Revert "add: debug CI"
marinebcht Jun 11, 2026
dd342de
Revert "add: debug CI"
marinebcht Jun 11, 2026
2f21db7
Revert "add: debug CI"
marinebcht Jun 11, 2026
9465f56
Revert "add: debug CI"
marinebcht Jun 11, 2026
50d6d76
Revert "add: debug CI"
marinebcht Jun 11, 2026
f568a13
Revert "add: debug CI"
marinebcht Jun 11, 2026
ec988f6
Revert "add: debug CI"
marinebcht Jun 11, 2026
b326f5a
Revert "add: debug CI"
marinebcht Jun 11, 2026
89c30c1
Revert "add: debug CI"
marinebcht Jun 11, 2026
9364084
Revert "add: debug CI"
marinebcht Jun 11, 2026
effc054
Revert "add: debug CI"
marinebcht Jun 11, 2026
03ff4ba
Revert "add: debug CI"
marinebcht Jun 11, 2026
bff4c55
Revert "add: debug CI"
marinebcht Jun 11, 2026
f877961
Revert "add: debug CI"
marinebcht Jun 11, 2026
14eab93
Revert "add: debug CI"
marinebcht Jun 11, 2026
ffa56f1
Revert "add: debug CI"
marinebcht Jun 11, 2026
0873473
Revert "add: debug CI"
marinebcht Jun 11, 2026
bfdbb5d
fix: CI +pre-commit
marinebcht Jun 11, 2026
abfe235
fix: reports + print/comments
marinebcht Jun 11, 2026
15f339d
Revert "fix: reports + print/comments"
marinebcht Jun 11, 2026
77f7206
fix: prints+comments
marinebcht Jun 11, 2026
d2e6c74
remove outputs reports
marinebcht Jun 11, 2026
92e49e4
add: reports
marinebcht Jun 11, 2026
72f366c
add: report via make html
marinebcht Jun 16, 2026
355b88d
fix: to-be-alignED + align imshow
marinebcht Jun 16, 2026
23dfeec
fix: plt.show()
marinebcht Jun 16, 2026
cb32710
fix: no coreg diff object
marinebcht Jun 16, 2026
b6e76f3
test: fix CI reports
marinebcht Jun 16, 2026
186b1f9
add: new config topo / doc
marinebcht Jun 16, 2026
44e3326
add: reports
marinebcht Jun 16, 2026
28c6910
validate merge
marinebcht Jun 16, 2026
3503557
maj: get cmap from matplotlib news
marinebcht Jun 16, 2026
7e21734
merge personnal 854
marinebcht Jun 16, 2026
3e4ee2b
merge: main
marinebcht Jun 16, 2026
23ee0c7
fix: doc + name png
marinebcht Jun 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/source/_workflows/outputs_accuracy/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head><meta charset='UTF-8'><title>Qualify elevation results</title></head>
<body>
<h1>Accuracy assessment report — xDEM</h1>
<p>xDEM version: 0.2.3.dev26</p><p>Date: 16/06/2026 14:38:58</p><p>Computing time: 12.87 seconds</p><h2>Elevation inputs</h2>
<p>xDEM version: 0.2.3.dev26</p><p>Date: 16/06/2026 18:46:15</p><p>Computing time: 10.76 seconds</p><h2>Elevation inputs</h2>
<img src='plots/inputs.png' alt='Image PNG' style='width: 100%; height: auto;'>
<h2>Masked elevation data</h2>
<img src='plots/masked_elev_map.png' alt='Image PNG' style='width: 100%; height: auto;'>
Expand All @@ -16,7 +16,7 @@ <h2>Information about inputs</h2>
</table>
</div>
<h2>Preprocessed elevation data</h2>
<img src='plots/preprocessed_to_be_aligned_elev_map.png' alt='Image PNG' style='width: 100%; height: auto;'>
<img src='plots/preprocessed_to_be_aligned_elev_map.png' alt='Image PNG' style='width: 100%; height: auto; justify-content: center'>
<div style='clear: both; margin-bottom: 30px;'>
<h2>Coregistration user configuration</h2>
<table border='1' cellspacing='0' cellpadding='5'>
Expand Down Expand Up @@ -52,9 +52,9 @@ <h2>Statistics</h2>
<tr><td>Valid count</td><td>1133607</td><td>1145221</td><td>1133607</td></tr>
</table>
<h2>Elevation differences</h2>
<img src='plots/diff_elev_diff_coreg_map.png' alt='Image PNG' style='width: 100%; height: auto'>
<img src='plots/diff_elev_diff_coreg_map.png' alt='Image PNG' style='width: 100%; height: auto; justify-content: center'>
<h2>Differences histogram</h2>
<img src='plots/elev_diff_histo.png' alt='Image PNG' style='width: 100%; height: auto'>
<img src='plots/elev_diff_histo.png' alt='Image PNG' style='width: 100%; height: auto; justify-content: center'>

</body>
</html>
Binary file modified doc/source/_workflows/outputs_accuracy/report.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/source/_workflows/outputs_topo/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head><meta charset='UTF-8'><title>Topographic summary results</title></head>
<body>
<h1>Topography summary report — xDEM</h1>
<p>xDEM version: 0.2.3.dev26</p><p>Date: 16/06/2026 14:39:12</p><p>Computing time: 7.20 seconds</p><h2>Elevation input</h2>
<p>xDEM version: 0.2.3.dev26</p><p>Date: 16/06/2026 18:46:25</p><p>Computing time: 6.03 seconds</p><h2>Elevation input</h2>
<img src='plots/elev_map.png' alt='Image PNG' style='width: 100%; height: auto;'>
<h2>Masked elevation data</h2>
<img src='plots/masked_elev_map.png' alt='Image PNG' style='width: 100%; height: auto;'>
Expand Down
Binary file modified doc/source/_workflows/outputs_topo/report.pdf
Binary file not shown.
39 changes: 18 additions & 21 deletions doc/source/cli_accuracy.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,19 +301,16 @@ Tree of outputs for level 1:
- root
├─ tables
│ ├─ [aligned_elev_stats.csv] (if coregistration)
│ ├─ [diff_elev_before_coreg_stats.csv] (if coregistration)
│ ├─ [diff_elev_after_coreg_stats.csv] (if coregistration)
│ ├─ reference_elev_stats.csv
└─ to_be_aligned_elev_stats.csv
│ ├─ [diff_elev_before_coreg_stats.csv] (if coregistration)
├─ [diff_elev_without_coreg_stats.csv] (if no coregistration)
- ├─ plots
│ ├─ inputs.png
│ ├─ [masked_elev_map.png] (if `path_to_mask` is given in input)
│ ├─ [preprocessed_to_be_aligned_elev_map.png or preprocessed_reference_elev_map.png] (if sampling_grid)
│ ├─ [diff_elev_before_coreg_map.png] (if coregistration)
│ ├─ [diff_elev_after_coreg_map.png] (if coregistration)
│ ├─ [diff_elev_before_after_hist.png] (if coregistration)
│ ├─ [diff_elev_diff_coreg_map.png] (if coregistration)
│ ├─ [diff_elev_without_coreg_map.png] (if no coregistration)
│ └─ [elev_diff_histo.png] (if coregistration))
│ ├─ [elev_diff_histo.png] (if coregistration))
- │ ├─ inputs.png
│ ├─ [masked_elev_map.png] (if `path_to_mask` is given in input)
│ └─ [preprocessed_to_be_aligned_elev_map.png or preprocessed_reference_elev_map.png] (if sampling_grid)
├─ [rasters
│ └─ [aligned_elev.tif] (if coregistration)
├─ report.html
Expand All @@ -327,28 +324,28 @@ Tree of outputs for level 2:
- root
├─ tables
│ ├─ [aligned_elev_stats.csv] (if coregistration)
│ ├─ [diff_elev_before_coreg_stats.csv] (if coregistration)
│ ├─ [diff_elev_after_coreg_stats.csv] (if coregistration)
│ ├─ [diff_elev_before_coreg_stats.csv] (if coregistration)
│ ├─ [diff_elev_without_coreg_stats.csv] (if no coregistration)
│ ├─ reference_elev_stats.csv
│ └─ to_be_aligned_elev_stats.csv
├─ plots
│ ├─ inputs.png
│ ├─ [masked_elev_map.png] (if `path_to_mask` is given in input)
│ ├─ [preprocessed_to_be_aligned_elev_map.png or preprocessed_reference_elev_map.png] (if sampling_grid)
│ ├─ [diff_elev_before_coreg_map.png] (if coregistration)
│ ├─ [diff_elev_after_coreg_map.png] (if coregistration)
│ ├─ [diff_elev_before_coreg_map.png] (if coregistration)
│ ├─ [diff_elev_coreg_tba_map.png] (if coregistration)
│ ├─ [diff_elev_before_after_hist.png] (if coregistration)
│ ├─ [diff_elev_without_coreg_map.png] (if no coregistration)
│ └─ [elev_diff_histo.png] (if coregistration))
│ ├─ [elev_diff_histo.png] (if coregistration))
- │ ├─ inputs.png
│ ├─ [masked_elev_map.png] (if `path_to_mask` is given in input)
│ └─ [preprocessed_to_be_aligned_elev_map.png or preprocessed_reference_elev_map.png] (if sampling_grid)
├─ rasters
│ ├─ [reference_elev_reprojected.tif] (if grid resampling)
│ ├─ [to_be_aligned_elev_reprojected.tif] (if grid resampling)
│ ├─ [aligned_elev.tif] (if coregistration)
│ ├─ [diff_elev_before_coreg_map.tif] (if coregistration)
│ ├─ [diff_elev_after_coreg_map.tif] (if coregistration)
│ ├─ [diff_elev_before_coreg_map.tif] (if coregistration)
│ ├─ [diff_elev_coreg_tba_map.tif] (if coregistration)
│ └─ [diff_elev_without_coreg_map.tif] (if no coregistration)
│ ├─ [diff_elev_without_coreg_map.tif] (if no coregistration)
│ ├─ [reference_elev_reprojected.tif] (if grid resampling)
│ └─ [to_be_aligned_elev_reprojected.tif] (if grid resampling)
├─ report.html
├─ [report.pdf] (if `generate_pdf` if `True`)
└─ used_config.yaml
Expand Down
7 changes: 6 additions & 1 deletion tests/test_workflows/test_accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ def test_run(get_accuracy_inputs_test, tmp_path, level, generated_pdf):

assert Path(tmp_path / "tables").joinpath("aligned_elev_stats.csv").exists()

assert Path(tmp_path / "plots").joinpath("diff_elev_diff_coreg_map.png").exists()
if level == 1:
assert Path(tmp_path / "plots").joinpath("diff_elev_diff_coreg_map.png").exists()
else:
assert Path(tmp_path / "plots").joinpath("diff_elev_before_coreg_map.png").exists()
assert Path(tmp_path / "plots").joinpath("diff_elev_after_coreg_map.png").exists()

assert Path(tmp_path / "plots").joinpath("elev_diff_histo.png").exists()
assert Path(tmp_path / "plots").joinpath("masked_elev_map.png").exists()
assert Path(tmp_path / "plots").joinpath("inputs.png").exists()
Expand Down
95 changes: 67 additions & 28 deletions xdem/workflows/accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def _load_data(self) -> tuple[float, float]:
title_dem_right="To-be-aligned elevation",
vmin=vmin,
vmax=vmax,
cbar_title=f"Elevation ({self.reference_elev.crs.linear_units})",
)
if ref_mask is not None or tba_mask is not None:
if ref_mask is not None:
Expand All @@ -115,7 +114,6 @@ def _load_data(self) -> tuple[float, float]:
title_dem_right="Masked terrain for to-be-aligned elevation",
vmin=vmin,
vmax=vmax,
cbar_title=f"Elevation ({self.reference_elev.crs.linear_units})",
)

self.dico_to_show = [
Expand Down Expand Up @@ -214,7 +212,6 @@ def _prepare_datas(self, vmin: float, vmax: float) -> None:
filename="preprocessed_to_be_aligned_elev_map",
vmin=vmin,
vmax=vmax,
cbar_title=f"Elevation ({self.to_be_aligned_elev.crs.linear_units})",
)
else:
self.reference_elev = self.reference_elev.crop(coord_intersection)
Expand All @@ -224,7 +221,6 @@ def _prepare_datas(self, vmin: float, vmax: float) -> None:
filename="preprocessed_reference_elev_map",
vmin=vmin,
vmax=vmax,
cbar_title=f"Elevation ({self.reference_elev.crs.linear_units})",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

color bar is ALWAYS f"Elevation ({self.reference_elev.crs.linear_units})", so not a param anymore

)

if self.level > 1:
Expand Down Expand Up @@ -342,32 +338,66 @@ def run(self) -> None:
self.stats_after["median"] + 3 * self.stats_after["nmad"],
)

self.generate_plot(
dem=self.diff_before,
title="Difference between To-be-align and Reference elevation\n(before coregistration)",
filename="diff_elev_diff_coreg_map",
dem_right=self.diff_after,
title_dem_right="Difference between Aligned and Reference elevation\n(after coregistration)",
vmin=vmin_diff,
vmax=vmax_diff,
cmap="RdBu",
cbar_title=f"Elevation differences ({self.diff_before.crs.linear_units})",
)
if self.level == 1:
self.generate_plot(
dem=self.diff_before,
title="Difference between To-be-aligned and Reference elevation\n(before coregistration)",
filename="diff_elev_diff_coreg_map",
dem_right=self.diff_after,
title_dem_right="Difference between Aligned and Reference elevation\n(after coregistration)",
vmin=vmin_diff,
vmax=vmax_diff,
cmap="RdBu",
)
else:
self.generate_plot_with_profiles(

@marinebcht marinebcht Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one 2x1 plot -> two 1x1 plot

dem=self.diff_before,
title="Difference between To-be-aligned and Reference elevation\n(before coregistration)",
filename="diff_elev_before_coreg_map",
vmin=vmin_diff,
vmax=vmax_diff,
cmap="RdBu",
)

self.generate_plot_with_profiles(
dem=self.diff_after,
title="Difference between Aligned and Reference elevation\n(after coregistration)",
filename="diff_elev_after_coreg_map",
vmin=vmin_diff,
vmax=vmax_diff,
cmap="RdBu",
)

if self.level > 1:
self.diff_coreg_tba = aligned_elev.reproject(self.to_be_aligned_elev) - self.to_be_aligned_elev

self.generate_plot(
self.generate_plot_with_profiles(
dem=self.diff_coreg_tba,
title="Difference between Aligned and To-be-align elevation\n(no coregistration)",
title="Difference between Aligned and To-be-aligned elevation\n(after coregistration)",
filename="diff_elev_coreg_tba_map",
cmap="RdBu",
cbar_title=f"Elevation differences ({self.diff_after.crs.linear_units})",
)
else:
self.diff = self.to_be_aligned_elev - self.reference_elev
self.stats = self.diff.get_stats(stats_keys)
vmin, vmax = -(self.stats["median"] + 3 * self.stats["nmad"]), self.stats["median"] + 3 * self.stats["nmad"]
if self.level == 1:
self.generate_plot(
self.diff,
title="Difference between To-be-aligned and Reference elevation",
filename="diff_elev_without_coreg_map",
vmin=vmin,
vmax=vmax,
cmap="RdBu",
)
else:
self.generate_plot_with_profiles(
dem=self.diff,
title="Difference between To-be-aligned and Reference elevation",
filename="diff_elev_without_coreg_map",
vmin=vmin,
vmax=vmax,
cmap="RdBu",
)
self.generate_plot(
self.diff,
title="Difference between To-be-align and Reference elevation",
Expand Down Expand Up @@ -494,26 +524,32 @@ def print_dict(title: str, dictionary: dict[str, Any]) -> str:
div_html += "</div>\n"
return div_html

def print_png(title: str, width: int = 100) -> str:
return (
f"<img src='plots/{title}.png' alt='Image PNG' style='width: {width}%; "
f"height: auto; justify-content: center'>\n"
)

# Metadata: Inputs
inputs_information = list_dict[0]
html += print_dict(inputs_information[0], inputs_information[1])

# Plot preprocessed data if did
if "sampling_grid" in self.config["inputs"] and self.config["inputs"]["sampling_grid"] is not None:
if self.config["inputs"]["sampling_grid"] == "reference_elev":
preprocessed_data = "plots/preprocessed_to_be_aligned_elev_map.png"
preprocessed_data = "preprocessed_to_be_aligned_elev_map"
else:
preprocessed_data = "plots/preprocessed_reference_elev_map.png"
preprocessed_data = "preprocessed_reference_elev_map"

html += "<h2>Preprocessed elevation data</h2>\n"
html += "<img src='" + preprocessed_data + "' alt='Image PNG' style='width: 100%; height: auto;'>\n"
html += print_png(preprocessed_data)

# Metadata: Inputs
for title, dictionary in list_dict[1:]: # type: ignore
html += print_dict(title, dictionary)

if self.compute_coreg and self.level > 1:
html += "<img src='plots/diff_elev_coreg_tba_map.png' alt='Image PNG' style='width: 100%; height: auto'>\n"
html += print_png("diff_elev_coreg_tba_map")

# Statistics table:
if self.df_stats is not None:
Expand All @@ -530,16 +566,19 @@ def print_dict(title: str, dictionary: dict[str, Any]) -> str:
# Coregistration: Add elevation difference plot and histograms before/after
if self.compute_coreg:
html += "<h2>Elevation differences</h2>\n"
html += "<img src='plots/diff_elev_diff_coreg_map.png' alt='Image PNG' style='width: 100%; height: auto'>\n"
if self.level == 1:
html += print_png("diff_elev_diff_coreg_map")
else:
html += print_png("diff_elev_before_coreg_map")
html += print_png("diff_elev_after_coreg_map")

html += "<h2>Differences histogram</h2>\n"
html += "<img src='plots/elev_diff_histo.png' alt='Image PNG' style='width: 100%; height: auto'>\n"
html += print_png("elev_diff_histo")

else:
html += "<h2>Elevation differences</h2>\n"
html += (
"<img src='plots/diff_elev_without_coreg_map.png' alt='Image PNG' style='width: 100%; height: auto'>\n"
)
html += print_png("diff_elev_without_coreg_map")

html += """
</body>
</html>
Expand Down
Loading
Loading