bashes.great3 module

class bashes.great3.Observation(branch, index, epoch)

Bases: object

Represents a GREAT3 observation specified by a branch, index (0-199) and epoch.

static addArgs(parser)

Add arguments to the provided command-line parser that support the fromArgs() method.

createObject(galaxyIndex, shifted=True, lensed=True)

Returns a GalSim model of the object corresponding to the specified galaxy index, consisting of the source model with lensing distortion and centroid shift applied, and convolved with the appropriate PSF.

createPSF(galaxyIndex)

Returns a GalSim model of the PSF for the specified galaxy index.

createSource(galaxyIndex, shifted=False, lensed=False)

Returns a GalSim model of the source for the specified galaxy index with optional centroid shifts and weak lensing distortion.

static fromArgs(args)

Returns a dictionary of constructor parameter values based on the parsed args provided.

classmethod getGSParams()
getImage()

Returns the array of postage stamp image data for this observation and initializes our stampSize data member.

getStars()

Returns the array of postage stamp starfield data for this observation.

getTruthCatalog()

Returns the truth catalog for this observation.

getTruthParams()

Returns a dictionary of truth parameter values for this observation.

renderObject(galaxyIndex, shifted=True, lensed=True, addNoise=True)

Renders a postage stamp of the truth model for the specified galaxy index with optional noise (that will exactly match the noise used for GREAT3).

bashes.great3.main()