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

Allow adding FITS cards to pfsConfig PHDU

    Details

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

      Description

      Per INSTRM-1863, we need to add a handful of cards to the PHDU of the pfsConfig files.

      From Slack discussions, I believe we agreed to add a header=[Dict[name, (value, comment)]] argument to the pfsConfig constructor. When the .write() method is called, those cards will be written to the PHDU.

      Side note: for now we will add a PROP-ID proposal card. Once the requirements are understood, there will likely be a new proposal column in the config table, giving one proposal per fiber.

        Attachments

          Issue Links

            Activity

            Hide
            cloomis cloomis added a comment -

            One obnoxiousness is that we need to add a DATE-OBS card to the pfsConfig PHDU. Actually making that match the PFS[AB] files would be hard. Also not really useful: the visit is the thing which groups all the components together.

            So I think `DATE-OBS` should be added by PfsConfig._writeImp(). price?

            Show
            cloomis cloomis added a comment - One obnoxiousness is that we need to add a DATE-OBS card to the pfsConfig PHDU. Actually making that match the PFS [AB] files would be hard. Also not really useful: the visit is the thing which groups all the components together. So I think `DATE-OBS` should be added by PfsConfig._writeImp() . price ?
            Hide
            price price added a comment -

            Is there a reason that can't be in the header?

            Show
            price price added a comment - Is there a reason that can't be in the header ?
            Hide
            cloomis cloomis added a comment -

            No. I probably just wanted to make someone else lie about the date. Nevermind.

            Show
            cloomis cloomis added a comment - No. I probably just wanted to make someone else lie about the date. Nevermind.
            Hide
            cloomis cloomis added a comment -

            We are required to add CHECKSUM/DATASUM. I think that just means adding checksum=True to the fits.writeto() call. Objections?

            Do we need the FiberType and TargetStatus definitions used in the fiberStatus table to be in the PHDU? Can those be added to the header for the DESIGN HDU after writing the PHDU? We have been given a provisional pass on putting HIERARCH in the PHDUs, but can we remove them entirely without breaking code? Looks to me that they are read from the DESIGN HDU, so do not need to be written to the PHDU as well.

            Show
            cloomis cloomis added a comment - We are required to add CHECKSUM/DATASUM. I think that just means adding checksum=True to the fits.writeto() call. Objections? Do we need the FiberType and TargetStatus definitions used in the fiberStatus table to be in the PHDU? Can those be added to the header for the DESIGN HDU after writing the PHDU? We have been given a provisional pass on putting HIERARCH in the PHDUs, but can we remove them entirely without breaking code? Looks to me that they are read from the DESIGN HDU, so do not need to be written to the PHDU as well.
            Hide
            price price added a comment -

            I'm fine with adding CHECKSUM (we should do that everywhere) and moving the FiberStatus and TargetType to the table HDU.

            Show
            price price added a comment - I'm fine with adding CHECKSUM (we should do that everywhere) and moving the FiberStatus and TargetType to the table HDU.

              People

              • Assignee:
                Unassigned
                Reporter:
                cloomis cloomis
              • Votes:
                0 Vote for this issue
                Watchers:
                Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: