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

Investigate refcat shards used in ci_hits2015

    XMLWordPrintable

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: ap_verify
    • Labels:
      None

      Description

      On DM-34068, I noticed that the prep_butler code wasn't loading the refcats shards I thought it should be, based on overplotting the refcat sources on the detector bbox. This might be because the ap_verify_ci_hits2015 dataset doesn't actually include those extra shards, because it didn't use the correct position for the center of the observation. This ticket is to investigate this discrepancy by making some plots of the refcat shards vs. the full focal plane, centered at the exposure boresight, and comparing with the center used in the refcat loading script.

        Attachments

          Issue Links

            Activity

            Hide
            Parejkoj John Parejko added a comment -

            Some plotting code that I was using when investigating DM-34068, so I don't lose it:

            xx=raw.wcs.pixelToSky(2100, 4100)
            plt.scatter(xx.getRa(), xx.getDec(), color='black')
            xx=raw.wcs.pixelToSky(0, 4100)
            plt.scatter(xx.getRa(), xx.getDec(), color='black')
            xx=raw.wcs.pixelToSky(2100, 0)
            plt.scatter(xx.getRa(), xx.getDec(), color='black')
            xx=raw.wcs.pixelToSky(0, 0)
            plt.scatter(xx.getRa(), xx.getDec(), color='black')
             
            def plot_shard(id):
                data=lsst.afw.table.SimpleCatalog.readFits(f'refcats/gen2/gaia/gaia_{id}_refcats_gen2.fits')
                plt.scatter(data['coord_ra'], data['coord_dec'], s=1.5, label=str(id))
             
            for i in [1, 2, 3, 4, 5, 7]:
                plot_shard(157400+i)
            plt.legend()
            

            Show
            Parejkoj John Parejko added a comment - Some plotting code that I was using when investigating DM-34068 , so I don't lose it: xx=raw.wcs.pixelToSky(2100, 4100) plt.scatter(xx.getRa(), xx.getDec(), color='black') xx=raw.wcs.pixelToSky(0, 4100) plt.scatter(xx.getRa(), xx.getDec(), color='black') xx=raw.wcs.pixelToSky(2100, 0) plt.scatter(xx.getRa(), xx.getDec(), color='black') xx=raw.wcs.pixelToSky(0, 0) plt.scatter(xx.getRa(), xx.getDec(), color='black')   def plot_shard(id): data=lsst.afw.table.SimpleCatalog.readFits(f'refcats/gen2/gaia/gaia_{id}_refcats_gen2.fits') plt.scatter(data['coord_ra'], data['coord_dec'], s=1.5, label=str(id))   for i in [1, 2, 3, 4, 5, 7]: plot_shard(157400+i) plt.legend()

              People

              Assignee:
              Parejkoj John Parejko
              Reporter:
              Parejkoj John Parejko
              Watchers:
              Eric Bellm, Ian Sullivan, John Parejko, Krzysztof Findeisen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Jenkins

                  No builds found.