[PIPE2D-1067] Provide advanced pfsObject plotting utility Created: 12/Aug/22  Updated: 12/Aug/22

Status: Open
Project: DRP 2-D Pipeline
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: hassan Assignee: hassan
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

As raised during the 2D DRP telecon 2022-07-29: for 1D debugging purposes, and for data analysis in general, we need to provide a means of plotting a pfsObject along with related pfsArm data.

Robert Lupton provided the following details on the #drp-2d slack channel:

I envisaged a way to plot a pfsObject file (that ability should exist) with the mask planes helpfully shown (that may not). Then choose a wavelength (ideally via the mouse, but that can easily be added later) and get:
the pfsArm spectra at that wavelength, over a configurable interval (with mask planes indicated)
a cutout from the calexps at that wavelength for that object, covering the same interval. This should also
include the mask (so display_matplotlib embedded into the regular matplotlib; that's easy). We'd have to
think about the stretch, but initially the same for all calexps would be good enough
That'd be a set of (pfsArm, calexp) for each input visit. You should be able to tie their wavelength axes together at the matplotlib level, but that's not necessary for an initial version.
There's probably no need to overlay the detectorMap at this point, but the requested wavelength from the pfsObject spectrum should be indicated in both the spectra/pixel plots
Let's initially only handle one arm (the one with most of the flux). Let's worry about the dichroic cross over problem later


Generated at Sat Feb 10 16:02:19 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.