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

subtractSky1d applied to spectrograph=3 produces excessive noise

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done (View Workflow)
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      rhl reports:

      With this how-to-repeat, these plots are pretty-much a smoking gun for a problem with spectrograph != 1:

      dataId.update(spectrograph=1)
      spec = butler.get('pfsArm', dataId)
      pfsConfig = butler.get("pfsConfig", dataId)
      ​
      from pfs.drp.stella.subtractSky1d import subtractSky1d
      sky1d = butler.get("sky1d", dataId)
      subtractSky1d(spec, pfsConfig, sky1d)
      ​
      spec.flux[(spec.mask & ~spec.flags["REFLINE"]) != 0x0] = np.NaN
      ​
      fig = 1; plt.close(fig); fig = plt.figure(fig)
      spec.plot(spec.fiberId[100:101], figure=fig, show=False)
      plt.ylim(-1000, 1000)
      ​
      plt.title(dataId);
      

        Attachments

        1. Figure 1 (60).png
          Figure 1 (60).png
          1.73 MB
        2. Figure 1 (61).png
          Figure 1 (61).png
          1.66 MB
        3. Figure 1 (62).png
          Figure 1 (62).png
          834 kB
        4. Figure 1-5.png
          Figure 1-5.png
          93 kB
        5. Figure 1-6.png
          Figure 1-6.png
          114 kB
        6. pipe2d-1197.ipynb
          1.25 MB
        7. pipe2d-1197.jpg
          pipe2d-1197.jpg
          164 kB

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: