DrawShapeletSet

Draws images of the shapelet basis. Useful mostly for debugging the shapelet functions. By default, this draws the cartesian basis set. If the "Polar" keyword is set, it draws both the real and imaginary components of the polar basis set.

Each shapelet is drawn onto its own small image. These w*h images are stored in a three-dimensional array. For cartesian coordinates, they are first indexed by increaing n1, and then by increasing n2. For polar coordinated, both the real and imaginary arrays are indexed by increasing m, then increasing n.

Note that for polar shapelets, they are indexed by n and m, where n >= 0 and m goes from -n to n in steps of 2. Therefore, the polar shapelet image arrays will contain a total of ((MaxN+1)^2+MaxN+1)/2 images.

Parameters
NameTypeDescription
Polar keyword Draw the polar basis rather than the cartesian basis.
Width int Width of the image of each basis in pixels.
Height int Height of the image of each basis in pixels.
MaxN int Cartesian: Maximum value for both n1 and n2. Polar: Maximum value of n.
Beta double Scale function in pixel units.

Inputs
NameTypeDescription

Outputs
NameTypeDescription
ShapeletSet/MaxN int Value of the MaxN parameter as set above.
ShapeletSet/Width int Width of the image of each basis in pixels.
ShapeletSet/Height int Height of the image of each basis in pixels.
ShapeletSet/Beta double Value of the scale function, in pixel units.
ShapeletSet/Images double* Array of pixel values for cartesian basis images.
ShapeletSet/RealImages double* Array of pixel values of real component for polar basis images.
ShapeletSet/ImaginaryImages double* Array of pixel values of imaginary component for polar basis images.