Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-15902

The butler ignores [hdu] specifications in templates

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: daf_persistence
    • Labels:
      None
    • Templates:
    • Team:
      DM Science

      Description

      As of w_2018_38 (and maybe a few versions earlier?), the butler ignores HDU specifications such as filename[0].  This breaks the code to handle auxTel data as we need to read raw_hdu from the PDU.

      The problem seems to be that readMetadata has two ways that seem to specify an HDU, the cfitsio style filename[N] and an explicit hdu=N; in reality the second overrides the first.  It is not possible to support the cfitsio style syntax in afw without changing the default value for hdu as currently the default value means, "read the first data HDU" so it is not possible for the C++ to know whether to obey the [HDU] or the hdu. It would be possible for the C++ to reject the former, but it currently silently ignores it.

      In consequence, the butler must parse the template and pass a bare filename and an HDU; this ticket requests that this be done.

        Attachments

          Activity

            People

            • Assignee:
              rhl Robert Lupton
              Reporter:
              rhl Robert Lupton
              Reviewers:
              Jim Bosch
              Watchers:
              Jim Bosch, Robert Lupton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel