LSSTApplications  19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
LSSTDataManagementBasePackage
Classes | Functions | Variables
lsst.pipe.tasks.insertFakes Namespace Reference

Classes

class  InsertFakesConnections
 

Functions

def addPixCoords (self, fakeCat, wcs)
 
def trimFakeCat (self, fakeCat, image, wcs)
 
def mkFakeGalsimGalaxies (self, fakeCat, band, photoCalib, pixelScale, psf, image)
 
def mkFakeStars (self, fakeCat, band, photoCalib, psf, image)
 
def cleanCat (self, fakeCat, starCheckVal)
 
def addFakeSources (self, image, fakeImages, sourceType)
 

Variables

 correctedFlux
 
 psfKernel
 
 psfIm
 
 galsimIm
 
 convIm
 
 outIm
 
 imSum
 
 divIm
 
 flux
 
 imWithFlux
 

Function Documentation

◆ addFakeSources()

def lsst.pipe.tasks.insertFakes.addFakeSources (   self,
  image,
  fakeImages,
  sourceType 
)
Add the fake sources to the given image

Parameters
----------
image : `lsst.afw.image.exposure.exposure.ExposureF`
            The image into which the fake sources should be added
fakeImages : `typing.Iterator` [`tuple` ['lsst.afw.image.ImageF`, `lsst.geom.Point2d`]]
            An iterator of tuples that contains (or generates) images of fake sources,
            and the locations they are to be inserted at.
sourceType : `str`
            The type (star/galaxy) of fake sources input

Returns
-------
image : `lsst.afw.image.exposure.exposure.ExposureF`

Notes
-----
Uses the x, y information in the ``fakeCat`` to position an image of the fake interpolated onto the
pixel grid of the image. Sets the ``FAKE`` mask plane for the pixels added with the fake source.

Definition at line 711 of file insertFakes.py.

711  def addFakeSources(self, image, fakeImages, sourceType):
712  """Add the fake sources to the given image
713 
714  Parameters
715  ----------
716  image : `lsst.afw.image.exposure.exposure.ExposureF`
717  The image into which the fake sources should be added
718  fakeImages : `typing.Iterator` [`tuple` ['lsst.afw.image.ImageF`, `lsst.geom.Point2d`]]
719  An iterator of tuples that contains (or generates) images of fake sources,
720  and the locations they are to be inserted at.
721  sourceType : `str`
722  The type (star/galaxy) of fake sources input
723 
724  Returns
725  -------
726  image : `lsst.afw.image.exposure.exposure.ExposureF`
727 
728  Notes
729  -----
730  Uses the x, y information in the ``fakeCat`` to position an image of the fake interpolated onto the
731  pixel grid of the image. Sets the ``FAKE`` mask plane for the pixels added with the fake source.
732  """
733 
734  imageBBox = image.getBBox()
735  imageMI = image.maskedImage
736 
737  for (fakeImage, xy) in fakeImages:
738  X0 = xy.getX() - fakeImage.getWidth()/2 + 0.5
739  Y0 = xy.getY() - fakeImage.getHeight()/2 + 0.5
740  self.log.debug("Adding fake source at %d, %d" % (xy.getX(), xy.getY()))
741  if sourceType == "galaxy":
742  interpFakeImage = afwMath.offsetImage(fakeImage, X0, Y0, "lanczos3")
743  interpFakeImBBox = interpFakeImage.getBBox()
744  else:
745  interpFakeImage = fakeImage
746  interpFakeImBBox = fakeImage.getBBox()
747 
748  interpFakeImBBox.clip(imageBBox)
749  imageMIView = imageMI.Factory(imageMI, interpFakeImBBox)
750 
751  if interpFakeImBBox.getArea() > 0:
752  clippedFakeImage = interpFakeImage.Factory(interpFakeImage, interpFakeImBBox)
753  clippedFakeImageMI = afwImage.MaskedImageF(clippedFakeImage)
754  clippedFakeImageMI.mask.set(self.bitmask)
755  imageMIView += clippedFakeImageMI
756 
757  return image
758 

◆ addPixCoords()

def lsst.pipe.tasks.insertFakes.addPixCoords (   self,
  fakeCat,
  wcs 
)
Add pixel coordinates to the catalog of fakes.

Parameters
----------
fakeCat : `pandas.core.frame.DataFrame`
            The catalog of fake sources to be input
wcs : `lsst.afw.geom.SkyWcs`
            WCS to use to add fake sources

Returns
-------
fakeCat : `pandas.core.frame.DataFrame`

Notes
-----
The default option is to use the WCS information from the image. If the ``useUpdatedCalibs`` config
option is set then it will use the updated WCS from jointCal.

Definition at line 468 of file insertFakes.py.

468  def addPixCoords(self, fakeCat, wcs):
469 
470  """Add pixel coordinates to the catalog of fakes.
471 
472  Parameters
473  ----------
474  fakeCat : `pandas.core.frame.DataFrame`
475  The catalog of fake sources to be input
476  wcs : `lsst.afw.geom.SkyWcs`
477  WCS to use to add fake sources
478 
479  Returns
480  -------
481  fakeCat : `pandas.core.frame.DataFrame`
482 
483  Notes
484  -----
485  The default option is to use the WCS information from the image. If the ``useUpdatedCalibs`` config
486  option is set then it will use the updated WCS from jointCal.
487  """
488 
489  ras = fakeCat[self.config.raColName].values
490  decs = fakeCat[self.config.decColName].values
491  skyCoords = [SpherePoint(ra, dec, radians) for (ra, dec) in zip(ras, decs)]
492  pixCoords = wcs.skyToPixel(skyCoords)
493  xs = [coord.getX() for coord in pixCoords]
494  ys = [coord.getY() for coord in pixCoords]
495  fakeCat["x"] = xs
496  fakeCat["y"] = ys
497 
498  return fakeCat
499 

◆ cleanCat()

def lsst.pipe.tasks.insertFakes.cleanCat (   self,
  fakeCat,
  starCheckVal 
)
Remove rows from the fakes catalog which have HLR = 0 for either the buldge or disk component,
   also remove galaxies that have Sersic index outside the galsim min and max
   allowed (0.3 <= n <= 6.2).

Parameters
----------
fakeCat : `pandas.core.frame.DataFrame`
            The catalog of fake sources to be input
starCheckVal : `str`, `bytes` or `int`
            The value that is set in the sourceType column to specifiy an object is a star.

Returns
-------
fakeCat : `pandas.core.frame.DataFrame`
            The input catalog of fake sources but with the bad objects removed

Notes
-----
If the config option sourceSelectionColName is set then only objects with this column set to True
will be added.

Definition at line 660 of file insertFakes.py.

660  def cleanCat(self, fakeCat, starCheckVal):
661  """Remove rows from the fakes catalog which have HLR = 0 for either the buldge or disk component,
662  also remove galaxies that have Sersic index outside the galsim min and max
663  allowed (0.3 <= n <= 6.2).
664 
665  Parameters
666  ----------
667  fakeCat : `pandas.core.frame.DataFrame`
668  The catalog of fake sources to be input
669  starCheckVal : `str`, `bytes` or `int`
670  The value that is set in the sourceType column to specifiy an object is a star.
671 
672  Returns
673  -------
674  fakeCat : `pandas.core.frame.DataFrame`
675  The input catalog of fake sources but with the bad objects removed
676 
677  Notes
678  -----
679  If the config option sourceSelectionColName is set then only objects with this column set to True
680  will be added.
681  """
682 
683  rowsToKeep = (((fakeCat[self.config.bulgeHLR] != 0.0) & (fakeCat[self.config.diskHLR] != 0.0))
684  | (fakeCat[self.config.sourceType] == starCheckVal))
685  numRowsNotUsed = len(fakeCat) - len(np.where(rowsToKeep)[0])
686  self.log.info("Removing %d rows with HLR = 0 for either the bulge or disk" % numRowsNotUsed)
687  fakeCat = fakeCat[rowsToKeep]
688 
689  minN = galsim.Sersic._minimum_n
690  maxN = galsim.Sersic._maximum_n
691  rowsWithGoodSersic = (((fakeCat[self.config.nBulge] >= minN) & (fakeCat[self.config.nBulge] <= maxN)
692  & (fakeCat[self.config.nDisk] >= minN) & (fakeCat[self.config.nDisk] <= maxN))
693  | (fakeCat[self.config.sourceType] == starCheckVal))
694  numRowsNotUsed = len(fakeCat) - len(np.where(rowsWithGoodSersic)[0])
695  self.log.info("Removing %d rows of galaxies with nBulge or nDisk outside of %0.2f <= n <= %0.2f" %
696  (numRowsNotUsed, minN, maxN))
697  fakeCat = fakeCat[rowsWithGoodSersic]
698 
699  if self.config.doSubSelectSources:
700  try:
701  rowsSelected = (fakeCat[self.config.sourceSelectionColName])
702  except KeyError:
703  raise KeyError("Given column, %s, for source selection not found." %
704  self.config.sourceSelectionColName)
705  numRowsNotUsed = len(fakeCat) - len(rowsSelected)
706  self.log.info("Removing %d rows which were not designated as template sources" % numRowsNotUsed)
707  fakeCat = fakeCat[rowsSelected]
708 
709  return fakeCat
710 

◆ mkFakeGalsimGalaxies()

def lsst.pipe.tasks.insertFakes.mkFakeGalsimGalaxies (   self,
  fakeCat,
  band,
  photoCalib,
  pixelScale,
  psf,
  image 
)
Make images of fake galaxies using GalSim.

Parameters
----------
band : `str`
pixelScale : `float`
psf : `lsst.meas.extensions.psfex.psfexPsf.PsfexPsf`
            The PSF information to use to make the PSF images
fakeCat : `pandas.core.frame.DataFrame`
            The catalog of fake sources to be input
photoCalib : `lsst.afw.image.photoCalib.PhotoCalib`
            Photometric calibration to be used to calibrate the fake sources

Yields
-------
galImages : `generator`
            A generator of tuples of `lsst.afw.image.exposure.exposure.ExposureF` and
            `lsst.geom.Point2D` of their locations.

Notes
-----

Fake galaxies are made by combining two sersic profiles, one for the bulge and one for the disk. Each
component has an individual sersic index (n), a, b and position angle (PA). The combined profile is
then convolved with the PSF at the specified x, y position on the image.

The names of the columns in the ``fakeCat`` are configurable and are the column names from the
University of Washington simulations database as default. For more information see the doc strings
attached to the config options.

See mkFakeStars doc string for an explanation of calibration to instrumental flux.

Definition at line 530 of file insertFakes.py.

530  def mkFakeGalsimGalaxies(self, fakeCat, band, photoCalib, pixelScale, psf, image):
531  """Make images of fake galaxies using GalSim.
532 
533  Parameters
534  ----------
535  band : `str`
536  pixelScale : `float`
537  psf : `lsst.meas.extensions.psfex.psfexPsf.PsfexPsf`
538  The PSF information to use to make the PSF images
539  fakeCat : `pandas.core.frame.DataFrame`
540  The catalog of fake sources to be input
541  photoCalib : `lsst.afw.image.photoCalib.PhotoCalib`
542  Photometric calibration to be used to calibrate the fake sources
543 
544  Yields
545  -------
546  galImages : `generator`
547  A generator of tuples of `lsst.afw.image.exposure.exposure.ExposureF` and
548  `lsst.geom.Point2D` of their locations.
549 
550  Notes
551  -----
552 
553  Fake galaxies are made by combining two sersic profiles, one for the bulge and one for the disk. Each
554  component has an individual sersic index (n), a, b and position angle (PA). The combined profile is
555  then convolved with the PSF at the specified x, y position on the image.
556 
557  The names of the columns in the ``fakeCat`` are configurable and are the column names from the
558  University of Washington simulations database as default. For more information see the doc strings
559  attached to the config options.
560 
561  See mkFakeStars doc string for an explanation of calibration to instrumental flux.
562  """
563 
564  self.log.info("Making %d fake galaxy images" % len(fakeCat))
565 
566  for (index, row) in fakeCat.iterrows():
567  xy = geom.Point2D(row["x"], row["y"])
568 
569  # We put these two PSF calculations within this same try block so that we catch cases
570  # where the object's position is outside of the image.
571  try:
572  correctedFlux = psf.computeApertureFlux(self.config.calibFluxRadius, xy)
573  psfKernel = psf.computeKernelImage(xy).getArray()
574  psfKernel /= correctedFlux
575 
576  except InvalidParameterError:
577  self.log.info("Galaxy at %0.4f, %0.4f outside of image" % (row["x"], row["y"]))
578  continue
579 
580  try:
581  flux = photoCalib.magnitudeToInstFlux(row[self.config.magVar % band], xy)
582  except LogicError:
583  flux = 0
584 
585  bulge = galsim.Sersic(row[self.config.nBulge], half_light_radius=row[self.config.bulgeHLR])
586  axisRatioBulge = row[self.config.bBulge]/row[self.config.aBulge]
587  bulge = bulge.shear(q=axisRatioBulge, beta=((90 - row[self.config.paBulge])*galsim.degrees))
588 
589  disk = galsim.Sersic(row[self.config.nDisk], half_light_radius=row[self.config.diskHLR])
590  axisRatioDisk = row[self.config.bDisk]/row[self.config.aDisk]
591  disk = disk.shear(q=axisRatioDisk, beta=((90 - row[self.config.paDisk])*galsim.degrees))
592 
593  gal = disk + bulge
594  gal = gal.withFlux(flux)
595 
596  psfIm = galsim.InterpolatedImage(galsim.Image(psfKernel), scale=pixelScale)
597  gal = galsim.Convolve([gal, psfIm])
598  try:
599  galIm = gal.drawImage(scale=pixelScale, method="real_space").array
600  except (galsim.errors.GalSimFFTSizeError, MemoryError):
601  continue
602 
603  yield (afwImage.ImageF(galIm), xy)
604 

◆ mkFakeStars()

def lsst.pipe.tasks.insertFakes.mkFakeStars (   self,
  fakeCat,
  band,
  photoCalib,
  psf,
  image 
)
Make fake stars based off the properties in the fakeCat.

Parameters
----------
band : `str`
psf : `lsst.meas.extensions.psfex.psfexPsf.PsfexPsf`
            The PSF information to use to make the PSF images
fakeCat : `pandas.core.frame.DataFrame`
            The catalog of fake sources to be input
image : `lsst.afw.image.exposure.exposure.ExposureF`
            The image into which the fake sources should be added
photoCalib : `lsst.afw.image.photoCalib.PhotoCalib`
            Photometric calibration to be used to calibrate the fake sources

Yields
-------
starImages : `generator`
            A generator of tuples of `lsst.afw.image.ImageF` of fake stars and
            `lsst.geom.Point2D` of their locations.

Notes
-----
To take a given magnitude and translate to the number of counts in the image
we use photoCalib.magnitudeToInstFlux, which returns the instrumental flux for the
given calibration radius used in the photometric calibration step.
Thus `calibFluxRadius` should be set to this same radius so that we can normalize
the PSF model to the correct instrumental flux within calibFluxRadius.

Definition at line 605 of file insertFakes.py.

605  def mkFakeStars(self, fakeCat, band, photoCalib, psf, image):
606 
607  """Make fake stars based off the properties in the fakeCat.
608 
609  Parameters
610  ----------
611  band : `str`
612  psf : `lsst.meas.extensions.psfex.psfexPsf.PsfexPsf`
613  The PSF information to use to make the PSF images
614  fakeCat : `pandas.core.frame.DataFrame`
615  The catalog of fake sources to be input
616  image : `lsst.afw.image.exposure.exposure.ExposureF`
617  The image into which the fake sources should be added
618  photoCalib : `lsst.afw.image.photoCalib.PhotoCalib`
619  Photometric calibration to be used to calibrate the fake sources
620 
621  Yields
622  -------
623  starImages : `generator`
624  A generator of tuples of `lsst.afw.image.ImageF` of fake stars and
625  `lsst.geom.Point2D` of their locations.
626 
627  Notes
628  -----
629  To take a given magnitude and translate to the number of counts in the image
630  we use photoCalib.magnitudeToInstFlux, which returns the instrumental flux for the
631  given calibration radius used in the photometric calibration step.
632  Thus `calibFluxRadius` should be set to this same radius so that we can normalize
633  the PSF model to the correct instrumental flux within calibFluxRadius.
634  """
635 
636  self.log.info("Making %d fake star images" % len(fakeCat))
637 
638  for (index, row) in fakeCat.iterrows():
639  xy = geom.Point2D(row["x"], row["y"])
640 
641  # We put these two PSF calculations within this same try block so that we catch cases
642  # where the object's position is outside of the image.
643  try:
644  correctedFlux = psf.computeApertureFlux(self.config.calibFluxRadius, xy)
645  starIm = psf.computeImage(xy)
646  starIm /= correctedFlux
647 
648  except InvalidParameterError:
649  self.log.info("Star at %0.4f, %0.4f outside of image" % (row["x"], row["y"]))
650  continue
651 
652  try:
653  flux = photoCalib.magnitudeToInstFlux(row[self.config.magVar % band], xy)
654  except LogicError:
655  flux = 0
656 
657  starIm *= flux
658  yield ((starIm.convertF(), xy))
659 

◆ trimFakeCat()

def lsst.pipe.tasks.insertFakes.trimFakeCat (   self,
  fakeCat,
  image,
  wcs 
)
Trim the fake cat to about the size of the input image.

Parameters
----------
fakeCat : `pandas.core.frame.DataFrame`
            The catalog of fake sources to be input
image : `lsst.afw.image.exposure.exposure.ExposureF`
            The image into which the fake sources should be added
wcs : `lsst.afw.geom.SkyWcs`
            WCS to use to add fake sources

Returns
-------
fakeCat : `pandas.core.frame.DataFrame`
            The original fakeCat trimmed to the area of the image

Definition at line 500 of file insertFakes.py.

500  def trimFakeCat(self, fakeCat, image, wcs):
501  """Trim the fake cat to about the size of the input image.
502 
503  Parameters
504  ----------
505  fakeCat : `pandas.core.frame.DataFrame`
506  The catalog of fake sources to be input
507  image : `lsst.afw.image.exposure.exposure.ExposureF`
508  The image into which the fake sources should be added
509  wcs : `lsst.afw.geom.SkyWcs`
510  WCS to use to add fake sources
511 
512  Returns
513  -------
514  fakeCat : `pandas.core.frame.DataFrame`
515  The original fakeCat trimmed to the area of the image
516  """
517 
518  bbox = Box2D(image.getBBox())
519  corners = bbox.getCorners()
520 
521  skyCorners = wcs.pixelToSky(corners)
522  region = ConvexPolygon([s.getVector() for s in skyCorners])
523 
524  def trim(row):
525  coord = SpherePoint(row[self.config.raColName], row[self.config.decColName], radians)
526  return region.contains(coord.getVector())
527 
528  return fakeCat[fakeCat.apply(trim, axis=1)]
529 

Variable Documentation

◆ convIm

lsst.pipe.tasks.insertFakes.convIm

Definition at line 444 of file insertFakes.py.

◆ correctedFlux

lsst.pipe.tasks.insertFakes.correctedFlux
raColName = pexConfig.Field(
    doc="RA column name used in the fake source catalog.",
    dtype=str,
    default="raJ2000",
)

decColName = pexConfig.Field(
    doc="Dec. column name used in the fake source catalog.",
    dtype=str,
    default="decJ2000",
)

doCleanCat = pexConfig.Field(
    doc="If true removes bad sources from the catalog.",
    dtype=bool,
    default=True,
)

diskHLR = pexConfig.Field(
    doc="Column name for the disk half light radius used in the fake source catalog.",
    dtype=str,
    default="DiskHalfLightRadius",
)

bulgeHLR = pexConfig.Field(
    doc="Column name for the bulge half light radius used in the fake source catalog.",
    dtype=str,
    default="BulgeHalfLightRadius",
)

magVar = pexConfig.Field(
    doc="The column name for the magnitude calculated taking variability into account. In the format "
        "``filter name``magVar, e.g. imagVar for the magnitude in the i band.",
    dtype=str,
    default="%smagVar",
)

nDisk = pexConfig.Field(
    doc="The column name for the sersic index of the disk component used in the fake source catalog.",
    dtype=str,
    default="disk_n",
)

nBulge = pexConfig.Field(
    doc="The column name for the sersic index of the bulge component used in the fake source catalog.",
    dtype=str,
    default="bulge_n",
)

aDisk = pexConfig.Field(
    doc="The column name for the semi major axis length of the disk component used in the fake source"
        "catalog.",
    dtype=str,
    default="a_d",
)

aBulge = pexConfig.Field(
    doc="The column name for the semi major axis length of the bulge component.",
    dtype=str,
    default="a_b",
)

bDisk = pexConfig.Field(
    doc="The column name for the semi minor axis length of the disk component.",
    dtype=str,
    default="b_d",
)

bBulge = pexConfig.Field(
    doc="The column name for the semi minor axis length of the bulge component used in the fake source "
        "catalog.",
    dtype=str,
    default="b_b",
)

paDisk = pexConfig.Field(
    doc="The column name for the PA of the disk component used in the fake source catalog.",
    dtype=str,
    default="pa_disk",
)

paBulge = pexConfig.Field(
    doc="The column name for the PA of the bulge component used in the fake source catalog.",
    dtype=str,
    default="pa_bulge",
)

sourceType = pexConfig.Field(
    doc="The column name for the source type used in the fake source catalog.",
    dtype=str,
    default="sourceType",
)

fakeType = pexConfig.Field(
    doc="What type of fake catalog to use, snapshot (includes variability in the magnitudes calculated "
        "from the MJD of the image), static (no variability) or filename for a user defined fits"
        "catalog.",
    dtype=str,
    default="static",
)

calibFluxRadius = pexConfig.Field(
    doc="Aperture radius (in pixels) that was used to define the calibration for this image+catalog. "
    "This will be used to produce the correct instrumental fluxes within the radius. "
    "This value should match that of the field defined in slot_CalibFlux_instFlux.",
    dtype=float,
    default=12.0,
)

coaddName = pexConfig.Field(
    doc="The name of the type of coadd used",
    dtype=str,
    default="deep",
)

doSubSelectSources = pexConfig.Field(
    doc="Set to True if you wish to sub select sources to be input based on the value in the column"
        "set in the sourceSelectionColName config option.",
    dtype=bool,
    default=False
)

sourceSelectionColName = pexConfig.Field(
    doc="The name of the column in the input fakes catalogue to be used to determine which sources to"
        "add, default is none and when this is used all sources are added.",
    dtype=str,
    default="templateSource"
)

insertImages = pexConfig.Field(
    doc="Insert images directly? True or False.",
    dtype=bool,
    default=False,
)

doProcessAllDataIds = pexConfig.Field(
    doc="If True, all input data IDs will be processed, even those containing no fake sources.",
    dtype=bool,
    default=False,
)


class InsertFakesTask(PipelineTask, CmdLineTask):

Definition at line 434 of file insertFakes.py.

◆ divIm

lsst.pipe.tasks.insertFakes.divIm

Definition at line 452 of file insertFakes.py.

◆ flux

lsst.pipe.tasks.insertFakes.flux

Definition at line 455 of file insertFakes.py.

◆ galsimIm

lsst.pipe.tasks.insertFakes.galsimIm

Definition at line 443 of file insertFakes.py.

◆ imSum

lsst.pipe.tasks.insertFakes.imSum

Definition at line 451 of file insertFakes.py.

◆ imWithFlux

lsst.pipe.tasks.insertFakes.imWithFlux

Definition at line 459 of file insertFakes.py.

◆ outIm

lsst.pipe.tasks.insertFakes.outIm

Definition at line 447 of file insertFakes.py.

◆ psfIm

lsst.pipe.tasks.insertFakes.psfIm

Definition at line 442 of file insertFakes.py.

◆ psfKernel

lsst.pipe.tasks.insertFakes.psfKernel

Definition at line 435 of file insertFakes.py.

lsst::log.log.logContinued.info
def info(fmt, *args)
Definition: logContinued.py:201
lsst.pipe.tasks.insertFakes.trimFakeCat
def trimFakeCat(self, fakeCat, image, wcs)
Definition: insertFakes.py:500
lsst::afw::table::SpherePoint
lsst::geom::SpherePoint SpherePoint
Definition: misc.h:35
lsst.pipe.tasks.insertFakes.cleanCat
def cleanCat(self, fakeCat, starCheckVal)
Definition: insertFakes.py:660
lsst.gdb.afw.printers.debug
bool debug
Definition: printers.py:9
lsst.pipe.tasks.insertFakes.addPixCoords
def addPixCoords(self, fakeCat, wcs)
Definition: insertFakes.py:468
lsst.pipe.tasks.insertFakes.addFakeSources
def addFakeSources(self, image, fakeImages, sourceType)
Definition: insertFakes.py:711
lsst.pipe.tasks.insertFakes.mkFakeGalsimGalaxies
def mkFakeGalsimGalaxies(self, fakeCat, band, photoCalib, pixelScale, psf, image)
Definition: insertFakes.py:530
lsst::geom::Point< double, 2 >
lsst::afw::math::offsetImage
std::shared_ptr< ImageT > offsetImage(ImageT const &image, float dx, float dy, std::string const &algorithmName="lanczos5", unsigned int buffer=0)
Return an image offset by (dx, dy) using the specified algorithm.
Definition: offsetImage.cc:41
lsst.pipe.tasks.insertFakes.mkFakeStars
def mkFakeStars(self, fakeCat, band, photoCalib, psf, image)
Definition: insertFakes.py:605