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

butler.get fails for raw and dark

    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
    • Story Points:
      2
    • Sprint:
      2DDRP-2021 A 2, 2DDRP-2021 A3

      Description

      Using

      dataDir = ("/projects/HSC/PFS/Subaru")
      calibDir = "/projects/HSC/PFS/Subaru/CALIB-price"
      butler = dafPersist.Butler(dataDir, calibRoot=calibDir)
      
      dataId = dict(visit=34341, spectrograph=1, arm='r')
      

      on tiger, butler.get('raw', dataId) fails with OperationalError : no such column: filter (and adding filter=dataId['arm'] works.

      Also, butler.get('dark', dataId) fails with OperationalError: no such column: spectrograph. The workaround is:

      taiObs = butler.queryMetadata('raw', ['taiObs'], dataId)[0]
      dark = butler.get('dark', dataId, taiObs=taiObs)
      

      bias has the same problem as dark

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: