[Workflow Accuracy] Plot DEM with profiles when level > 2 #967
Merged
Conversation
marinebcht
commented
Jun 17, 2026
| filename="preprocessed_reference_elev_map", | ||
| vmin=vmin, | ||
| vmax=vmax, | ||
| cbar_title=f"Elevation ({self.reference_elev.crs.linear_units})", |
Contributor
Author
There was a problem hiding this comment.
color bar is ALWAYS f"Elevation ({self.reference_elev.crs.linear_units})", so not a param anymore
marinebcht
commented
Jun 17, 2026
| cmap="RdBu", | ||
| ) | ||
| else: | ||
| self.generate_plot_with_profiles( |
Contributor
Author
There was a problem hiding this comment.
one 2x1 plot -> two 1x1 plot
Contributor
Author
|
@belletva ready :) |
marinebcht
added a commit
to marinebcht/xdem
that referenced
this pull request
Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #961
This PR proposes a new kind of graph in the accuracy workflow like this:
It plots the same dem + colormap as before but with the columns and lines profiles (+ min/max values of each) and replaces if level > 1 the previous :
diff_elev_[before/after]_coreg_map.pngand thediff_elev_coreg_tba_map.pngin case of a coregistration processdiff_elev_without_coreg_map.pngin case of no coregistration processHere two examples (level = 2) :
accuracy with
coreg/process = True:report.pdf
accuracy with
coreg/process = False:outputs_no_coreg_accuracy_2.pdf