Creates a set of galaxy images. That is, and array of images each of which has a particular realization of a galaxy model. This module creates two separate arrays: one in which the galaxies have been biased by some constant amount ("Biased"), and a second in which the galaxies have no such distortion bias (gamma1=gamma2=0, "Unbiased").
The output of this module is as a base for many simulation chains, and as an intermediate step in several others.
There are many different options to this module. The module can optionally increase the galaxy counts each time its process() stage is called. The centers of galaxies can be fixed to the center of the images, or can be moved randomly. This module can optionally create "Big" galaxies, which are placed in a special spot in memory and often serve as a base to create derivative galaxy sets (with ReduceGalSet for instance).
Parameters
| Name | Type | Description |
|---|---|---|
| BiasedCount | int | Number of biased galaxies to create. |
| UnbiasedCount | int | Number of unbiased galaxies to create. |
| BiasedStep | int | Amount to increase BiasedCount during each process(). Default is 0. |
| UnbiasedStep | int | Amount to increase UnbiasedCount during each process(). Default is 0. |
| BiasedMax | int | Maximum number of biased galaxies (useful only with BiasedStep). |
| UnbiasedMax | int | Maximum number of unbiased galaxies (useful only with UnbiasedStep). |
| Gamma1 | double | Amount of constant x-y shear bias to put in biased galaxies. |
| Gamma2 | double | Amount of constant 45deg to x-y shear bias to put in biased galaxies. |
| GalTag | string | Tag name of galaxy model to use when drawing the galaxies. |
| Width | int | Pixel width of each image. |
| Height | int | Pixel height of each image. |
| MoveCenter | keyword | If set, randomly move the center of the galaxies. |
| CenterRadius | double | Keep the center of each galaxy within this radius of the center of the image. Useful only if CenterRadius is set. |
| Seed | int | Value to seed random number generator with. If not specified, a random seed is used. |
| Big | keyword | If specified, place galaxy images into variables labeled "Big" as specified below. |
| Verbose | keyword | If set, print debugging information to cout. |
Inputs
| Name | Type | Description |
|---|---|---|
Outputs
| Name | Type | Description |
|---|---|---|
| GalSet/Gamma1 | double | The amount of shear in x-y direction with which the biased galaxies were biased. |
| GalSet/Gamma2 | double | The amount of shear 45deg to x-y direction with which the biased galaxies were biased. |
| GalSet/BiasedImages | double* | Array of pixel values for the biased galaxy images. |
| GalSet/BiasedCount | int | Number of biased images created. |
| GalSet/BiasedCentX | double* | X-coordinate of the center about which the galaxy was created. |
| GalSet/BiasedCentY | double* | Y-coordinate of the center about which the galaxy was created. |
| GalSet/UnbiasedImages | double* | Array of pixel values for the unbiased galaxy images. |
| GalSet/UnbiasedCount | int | Number of unbiased images created. |
| GalSet/UnbiasedCentX | double* | X-coordinate of the center about which the galaxy was created. |
| GalSet/UnbiasedCentY | double* | Y-coordinate of the center about which the galaxy was created. |
| GalSet/Seed | int | Seed used to generate these images. |