DeblendAdapt

class lsst.ts.wep.deblend.DeblendAdapt

Bases: DeblendDefault

DeblendDefault child class to do the deblending by the adaptive threshold method.

Methods Summary

deblendDonut(imgToDeblend, iniGuessXY)

Deblend the donut image.

generateMultiDonut(template, spaceCoef, ...)

Gemerate multiple donut images.

Methods Documentation

deblendDonut(imgToDeblend, iniGuessXY)

Deblend the donut image.

Parameters:
imgToDeblendnumpy.ndarray

Image to deblend.

iniGuessXYlist[tuple]

The list contains the initial guess of (x, y) positions of neighboring stars as [star 1, star 2, etc.].

Returns:
numpy.ndarray

Deblended donut image.

float

Position x of donut in pixel.

float

Position y of donut in pixel.

Raises:
ValueError

Only support to deblend single neighboring star.

generateMultiDonut(template, spaceCoef, magRatio, theta)

Gemerate multiple donut images.

Only one neightboring star will be generated for test, which is the baseline of LSST.

Parameters:
templatenumpy.ndarray

Template donut image.

spaceCoeffloat

Spacing coefficient to decide the distance between donuts.

magRatiofloat

Magnitude ratio of new donut compared with the original one.

thetafloat

Theta angle of generated neighboring star in degree.

Returns:
numpy.ndarray

Image of donuts.

numpy.ndarray

Image of bright star.

numpy.ndarray

Image of neighboring star.

float

Position x of neighboring star.

float

Position y of neighboring star.

Raises:
ValueError

spaceCoef should be greater than zero.

ValueError

magRatio should be postive and less than 1.