Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide monitor that fiducials are turned off. #213

Open
deisenstein opened this issue Jan 12, 2021 · 10 comments
Open

Provide monitor that fiducials are turned off. #213

deisenstein opened this issue Jan 12, 2021 · 10 comments
Labels
higher priority From triage of Daniel & Stephen, Jan 2021

Comments

@deisenstein
Copy link

Exposure 71870 appears to have failed to turn off the fiducials, leaving a bump centered at 4600 A (about 4400-4850 in full) in 3 spots on the FP.

This should be easy to filter for, e.g., Flux(4550,4650) - Flux(4350,4400) - Flux(4850,4900).

A camfiber-style focal plane plot of that function would show the blobs. But we also should then look for some single statistic of the image that could be reflected on the exposure list or summary page.

This is an example of how we might want to generate other "bands" in the camfiber list besides just coadding whole cameras. For instance, the formal r-band might be useful. Or features associated to dome lights or to arc lamps templates.

@deisenstein deisenstein added the higher priority From triage of Daniel & Stephen, Jan 2021 label Jan 12, 2021
@sbailey
Copy link
Collaborator

sbailey commented Jan 12, 2021

+1 for automating the identification of this problem, but it is so rare that I'm not sure it deserves its own plot or own column in the summary table. Perhaps we could introduce a new concept of QA to be displayed on the summary page, recommending that the DQS investigate more. e.g. if everything is fine, nothing is listed, but if this trips threshold, a bullet would be added saying

  • 4600 A contamination on N fibers; check focal plane plots

Going beyond this ticket, other possible entries could be things like:

  • very high readnoise in CCD B amp D; check CCD images
  • spectrograph 3 has 50% lower throughput than expected; check Hartmann doors
  • No arc lines identified in ARC exposure; are arc lamps on?
  • 30% of fibers are reported as not being on target

@deisenstein
Copy link
Author

deisenstein commented Jan 12, 2021 via email

@sbailey
Copy link
Collaborator

sbailey commented Jan 12, 2021

A table/grid with 20+ green check marks on the per-exposure status page with additional text provided only if they fail (red X, yellow !, + text) could be fine. That is more viable than adding 20+ columns to the top-level table of exposures.

@deisenstein
Copy link
Author

deisenstein commented Jan 12, 2021 via email

@sbailey
Copy link
Collaborator

sbailey commented Jan 12, 2021

Nightwatch qa-EXPID.fits files have HDUs for PER_AMP, PER_CAMFIBER, PER_CAMERA, PER_FIBER for tracking QA specific to each of those things. Following that structure, we could add a PER_EXPOSURE HDU with global metrics or booleans. That would be a one-row table per file with columns NIGHT, EXPID, +one column per metric (even though a single-row table seems a bit odd, they are designed to be able to stack QA tables across exposures for making timeseries etc.).

i.e. the calculation would belong in the QA portion of the code, would be written to the PER_* HDUs, and then the display code would use the info from that file without doing calculation itself. Does that make sense?

@deisenstein
Copy link
Author

deisenstein commented Jan 13, 2021 via email

@sbailey
Copy link
Collaborator

sbailey commented Jan 13, 2021

Question: since the main purpose is support
stacking across exposures, should we also echo some of the keywords like
exposure number or time into the table columns?

Yes, e.g. the PER_CAMERA HDU has "metadata" columns NIGHT, EXPID, SPECTRO, CAM, FIBER to orient what is what including stacking across exposures, plus QA metric columns INTEG_RAW_FLUX, MEDIAN_RAW_FLUX, etc. Within a single file, the NIGHT and EXPID are all the same but they are still kept to facilitate stacking. In this case there are 103500 = 15000 rows, one per fiber per camera (b,r,z) per spectrograph (0-9).

For a PER_EXPOSURE HDU, the "metadata" columns would be just NIGHT, EXPID; plus as many QA metric columns as we need, and each file would have just a single row.

Adding a timestamp would be useful too, but that starts taking us down a slippery slope of N>>1 other columns (airmass, sky, seeing, temp, ...) which might be better kept in a separate table and merged as needed.

@deisenstein
Copy link
Author

deisenstein commented Jan 13, 2021 via email

@sybenzvi
Copy link
Contributor

This ticket came up today in a survey-ops discussion on slack due to the discovery of fiducials contaminating tile 80708 in exposures 75868-75870.

Nightwatch is not the first line of defense against this problem; ICS now prevents the launch of spectrograph exposures if the fiducials are on. But we should probably incorporate the check into Nightwatch in case we rebuild the exposure tables in the future.

@sbailey
Copy link
Collaborator

sbailey commented Jan 28, 2022

Comments from @djschlegel in separate ticket #234:

If the lights that front-illuminate the focal plane for FVC pictures (installed ~summer 2021?) are left on, they severely contaminate both the GFA images and the spectrographs. The GFAs are saturated. The spectrographs have contaminating blue light like the spectrum below from night 20211128 expid 111175.

NightWatch should trigger an error on any spectra where this is seen (or more generally, any large amount of contaminating light, although here we have the opportunity to diagnose the problem from the spectrum).

Good test cases are the evening cals for night 20211128, expid 111164 - 11197.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
higher priority From triage of Daniel & Stephen, Jan 2021
Projects
None yet
Development

No branches or pull requests

3 participants