CalcShearGalSet

Takes a set of shapelet decompositions for biased galaxies, and a set of decompositions for unbiased galaxies, and calculates the average shear of the biased set using the unbiased set as a model. This follows the procedure given in Refregier's Shapelets II.

Parameters
NameTypeDescription
MaxBiased int Maximum number of biased galaxies to use in measurement.
MaxUnbiased int Maximum number of unbiased galaxies to use in measurement.

Inputs
NameTypeDescription
GalSet/BiasedCount int Number of biased images in galaxy set.
GalSet/UnbiasedCount int Number of unbiased images in galaxy set.
GalSet/ShapeletNumCoef int Number of coefficients used in each of n1, n2 directions of shapelet spectrum.
GalSet/BiasedShapes double* Three-dimensional array of n*n shapelet decompositions for each biased galaxy.
GalSet/UnbiasedShapes double* Three-dimensional array of n*n shapelet decompositions for each unbiased galaxy.

Outputs
NameTypeDescription
GalSet/MeasuredBiasedCount int Number of biased galaxies used in measurement.
GalSet/MeasuredUnbiasedCount int Number of unbiased galaxies used in measurement.
GalSet/MeasuredGamma1 double The average shear bias along x-y for the entire biased galaxy set.
GalSet/MeasuredGamma2 double The average shear bias 45 degrees to x-y for the entire biased galaxy set.
GalSet/ShapeletMean double* Average shapelet spectrum for unbiased galaxies (that is, the galaxy model that the biased galaxies were compared to).