make_tweakreg_catalog

jwst.tweakreg.tweakreg_catalog.make_tweakreg_catalog(model, snr_threshold, bkg_boxsize=400, starfinder='dao', starfinder_kwargs={})[source]

Create a catalog of point-line sources to be used for image alignment in tweakreg.

Parameters:
  • model (ImageModel) – The input ImageModel of a single image. The input image is assumed to be background subtracted.

  • snr_threshold (float) – The signal-to-noise ratio per pixel above the background for which to consider a pixel as possibly being part of a source.

  • bkg_boxsize (float, optional) – The background mesh box size in pixels.

  • starfinder (str, optional) –

    The photutils star finder to use. Options are ‘dao’, ‘iraf’, or ‘segmentation’.

    • ’dao’: photutils.detection.DAOStarFinder

    • ’iraf’: photutils.detection.IRAFStarFinder

    • ’segmentation’: photutils.segmentation.SourceFinder and photutils.segmentation.SourceCatalog

  • starfinder_kwargs (dict, optional) –

    additional keyword arguments to be passed to the star finder. for ‘segmentation’, these can be kwargs to photutils.segmentation.SourceFinder and/or photutils.segmentation.SourceCatalog. for ‘dao’ or ‘iraf’, these are kwargs to photutils.detection.DAOStarFinder or photutils.detection.IRAFStarFinder, respectively. Defaults are as stated in the docstrings of those functions unless noted here:

    • ’dao’: fwhm=2.5

    • ’iraf’: fwhm=2.5

    • ’segmentation’: npixels=10, progress_bar=False

Returns:

catalog – An astropy Table containing the source catalog.

Return type:

Table