Uploaded image for project: 'DRP 2-D Pipeline'
  1. DRP 2-D Pipeline
  2. PIPE2D-993

reduceExposure fails when using PFI calib and 2d sky subtraction

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      2DDRP-2022 B

      Description

      Running reduceExposure.py with 2D sky subtraction enabled using the calib CALIB-PFI-20211220 fails in the aperture correction computation:

      $ reduceExposure.py /projects/HSC/PFS/Subaru --calib /projects/HSC/PFS/Subaru/CALIB-PFI-20211220 --rerun=hassans/sunss/v46588_calibpfi --doraise --id visit=46588 arm=b^r -c measurePsf.oversampleFactor=11 measurePsf.version=Aug0121_v1 measurePsf.targetSize=21 doWriteCalexp=True doSubtractSky2d=True doMeasurePsf=True isr.doFlat=False
      
        File "/tigress/hassans/software/drp_stella/python/pfs/drp/stella/reduceExposure.py", line 278, in runDataRef
          linesList, apCorrList)
        File "/tigress/hassans/software/drp_stella/python/pfs/drp/stella/subtractSky2d.py", line 164, in run
          image = self.subtractSky(exposure, psf, fiberTrace, detectorMap, pfsConfig, sky2d, apCorr)
        File "/tigress/hassans/software/drp_stella/python/pfs/drp/stella/subtractSky2d.py", line 295, in subtractSky
          image = self.makeSkyImage(exposure.getBBox(), psf, fiberTraces, pfsConfig, sky2d, apCorr)
        File "/tigress/hassans/software/drp_stella/python/pfs/drp/stella/subtractSky2d.py", line 259, in makeSkyImage
          model.flux[ii], invert=True)
        File "/tigress/hassans/software/drp_stella/python/pfs/drp/stella/apertureCorrections.py", line 316, in calculateApertureCorrection
          result = apCorr(wavelength, pfsConfig.select(fiberId=fiberId))
        File "/tigress/hassans/software/drp_stella/python/pfs/drp/stella/focalPlaneFunction.py", line 156, in __call__
          result.values = result.values[0]
      IndexError: index 0 is out of bounds for axis 0 with size 0
      

      This is not the case when using the CALIB-SuNSS-2021-06-16 calib. Please investigate.

        Attachments

          Activity

            People

            • Assignee:
              hassan hassan
              Reporter:
              hassan hassan
              Reviewers:
              price
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: