[PIPE2D-1284] Fix weekly breakage 2023-08-13 Created: 16/Aug/23  Updated: 22/Aug/23  Resolved: 22/Aug/23

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

Type: Story Priority: Normal
Reporter: price Assignee: price
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

reduceArc is failing:

pfs.drp.stella.fitDistortedDetectorMap.FittingError: No selected lines to fit

Arc lines are all being flagged because the image is NANs.
Looks like the IMAGE_2 extension of the NIR ramps file doesn't include the bias, so subtracting the bias leaves almost everything negative.



 Comments   
Comment by price [ 22/Aug/23 ]

I updated the NIR raw files, and the most recent weekly went through fine.

from glob import glob
import astropy.io.fits
import numpy as np
for filename in glob("/scratch/pprice/pipe2d-1284/PFFB*.fits"):
    fits = astropy.io.fits.open(filename)
    fits["IMAGE_2"].data += int(np.median(fits["REF_2"].data))
    fits.writeto(filename, overwrite=True)
Comment by price [ 22/Aug/23 ]

Updated simulator to include the NIR bias level.

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