-
Notifications
You must be signed in to change notification settings - Fork 24
Cosmic ray rejection: If statements for ITL devices on red cameras #2557
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
Conversation
|
@jbanovetz it looks like you haven't pushed your updated coefficients to github, i.e. the ITL r coefficients are still the same as b. Please confirm. |
|
I added the new numbers this morning and have been investigating the differences between the old and the new parameters. It looks like the difference in pixels is due to the old parameters masking a little more than the new. I verified this with ds9 and visual inspection. I also compared this to an on-sky image. There is about a 5000 pixel difference in the cosmic mask plane between the old and the news and about 2 cosmic rays missed, which I am going over with visual inspection now. There were also a lot of failed tests when committing the updates. Looking into these, it looks like some issues with pip and desimodel and desi target. |
|
Updated params look good; I spot checked amp A of arc 20251027/318367 and dark 20251027/318359. I also fixed the if/else logic because the original version would never have set I am also attempting to fix the github test setup due to pip/25.3. If it doesn't work quickly I'll punt and merge anyway. That issue is tracked in desihub/desitarget#862. |
Since installation, r7 has had high cosmic rates for amplifiers A and B. Looking into the data, it looks like some of the arc lines are getting masked as cosmic rays. Julien mentioned this is because we are using the wrong psf gradient parameters for the detector, parameters meant for LBNL detectors, not ITL. I have added some if statements to use the b camera psf parameters (since they are ITL devices) if the red cameras are ITLs using the CCDTYPE keyword, something unique to the newer detectors. Changing the parameters does help, though does not completely solve the problem of parts of arc lines being flagged as cosmic rays. Below shows comparisons between using the old (LBNL) psf parameters and the new (ITL) pdf parameters for r7. This just shows the cosmic ray mask plane in red overlaid with the corresponding arc (00316177 taken on 20251014).
This change should also help r1 which also has an ITL detector. Below are comparisons similar to those done with r7.