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

Write StarFast interface to ProcessCCD

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: Science Pipelines
    • Labels:
      None

      Description

      The simulated images generated by StarFast need to be able to be run through the LSST stack, to test and make use of the existing measurement, fitting, stacking, and image differencing capabilities.
      This includes writing or updating a simulations obs package, and determining and supplying the required metadata.

        Attachments

          Activity

          Hide
          sullivan Ian Sullivan added a comment -

          Completed by converting the numpy arrays generated by StarFast into LSST exposure objects. Code is in https://github.com/lsst-dm/starfast_simulator

          The necessary parameters that had to be added for ingestSimImages.py and processEimage.py to work on the Fits files were:

          Create a wcs:
          exposure.setWcs(afwImage.makeWcs(crval, crpix, cd1_1, cd1_2, cd2_1, cd2_2))

          Add exposure time:
          calib = afwImage.Calib()
          calib.setExptime(exposure_time)
          exposure.setCalib(calib)

          Add required keys to the exposure metadata, which will be added to the FITS header:
          meta = exposure.getMetadata()
          meta.add("CHIPID", "R22_S11")
          meta.add("OUTFILE", "SnapId_000")
          meta.add("TAI", mjd)
          meta.add("MJD-OBS", mjd)
          meta.add("EXTTYPE", "IMAGE")

          Show
          sullivan Ian Sullivan added a comment - Completed by converting the numpy arrays generated by StarFast into LSST exposure objects. Code is in https://github.com/lsst-dm/starfast_simulator The necessary parameters that had to be added for ingestSimImages.py and processEimage.py to work on the Fits files were: Create a wcs: exposure.setWcs(afwImage.makeWcs(crval, crpix, cd1_1, cd1_2, cd2_1, cd2_2)) Add exposure time: calib = afwImage.Calib() calib.setExptime(exposure_time) exposure.setCalib(calib) Add required keys to the exposure metadata, which will be added to the FITS header: meta = exposure.getMetadata() meta.add("CHIPID", "R22_S11") meta.add("OUTFILE", "SnapId_000") meta.add("TAI", mjd) meta.add("MJD-OBS", mjd) meta.add("EXTTYPE", "IMAGE")

            People

            • Assignee:
              sullivan Ian Sullivan
              Reporter:
              sullivan Ian Sullivan
              Watchers:
              Ian Sullivan, Simon Krughoff
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: