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

Get all useful dataId keys

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: butler, obs_base
    • Labels:
      None
    • Templates:
    • Team:
      Data Access and Database

      Description

      We usually want the full range of available dataId keys to be available when given a dataId, so much so that this hack, which started in obs_subaru, is slowly finding its way to other mappers:

              # Ensure each dataset type of interest knows about the full range of keys available from the registry
              keys = {'field': str,
                      'visit': int,
                      'filter': str,
                      'ccd': int,
                      'dateObs': str,
                      'taiObs': str,
                      'expTime': float,
                      'pointing': int,
                      }
              for name in ("raw",
                           # processCcd outputs
                           "postISRCCD", "calexp", "postISRCCD", "src", "icSrc", "icMatch", "icMatchFull",
                           "srcMatch", "srcMatchFull",
                           # forcedPhot outputs
                           "forced_src",
                           # Warp
                           "coaddTempExp",
                           ):
                  self.mappings[name].keyDict.update(keys)
      

      Please make this a standard feature.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ktl Kian-Tat Lim
                Reporter:
                price Paul Price
                Watchers:
                Colin Slater, Hsin-Fang Chiang, John Parejko, John Swinbank, Kian-Tat Lim, Merlin Fisher-Levine, Paul Price, Robert Lupton
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel