Skip to content

Commit

Permalink
Update single_measurement_trending_plot to subtract piston before dis…
Browse files Browse the repository at this point in the history
…playing proposed correction OPD (#756)
  • Loading branch information
mperrin authored Nov 8, 2023
1 parent 75824af commit f952eae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webbpsf/trending.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,10 @@ def single_measurement_trending_plot(opdtable, row_index=-1, reference=None, ver
iax = axes[2, 2]

if show_correction:
# Note, the WSS does not remove piston from the correction so it's not zero mean.
# Fix that here before display. This also affects the derived rms value displayed.
correction -= np.nanmean(correction[correction_mask==1])

show_opd_image(-correction, ax=iax, vmax=vmax, mask=correction_mask, fontsize=fontsize)
iax.set_title(f"Controllable modes\nfrom WSS proposed correction", fontsize=fontsize*1.1)

Expand Down

0 comments on commit f952eae

Please sign in to comment.