DeblendDefault

class lsst.ts.wep.deblend.DeblendDefault

Bases: object

Default deblend class.

Methods Summary

deblendDonut(imgToDeblend, iniGuessXY, **kwargs)

Deblend the donut image.

generateMultiDonut(template, spaceCoef, ...)

Gemerate multiple donut images.

Methods Documentation

deblendDonut(imgToDeblend, iniGuessXY, **kwargs)

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.].

**kwargsdict[str, any]

Dictionary of input argument: new value for that input argument.

Returns:
numpy.ndarray

Deblended donut image.

float

Position x of donut in pixel.

float

Position y of donut in pixel.

Raises:
NotImplementedError

Child class should implement this.

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.