GLAMERDOC++
Gravitational Lensing Code Library
|
Class for sources described by shapelets. More...
#include <source.h>
Public Member Functions | |
SourceShapelets (PosType my_z, PosType my_mag, PosType my_scale, std::valarray< PosType > my_coeff, PosType *my_center, PosType my_ang, PosType zero_point, Band band) | |
SourceShapelets (PosType my_z, PosType my_mag, std::string shap_file, PosType *my_center, PosType my_ang, PosType zero_point, Band band) | |
SourceShapelets (std::string shap_file, PosType my_ang, PosType zero_point, Band band) | |
SourceShapelets (const SourceShapelets &s) | |
SourceShapelets & | operator= (const SourceShapelets &s) |
void | rotate (PosType ang) |
rotate source | |
PosType | SurfaceBrightness (const PosType *y) const |
void | printSource () |
PosType | getRadius () const |
maximum size | |
void | pepper (int n, double s, Utilities::RandomNumbers_NR &ran) |
double | sub_structure_sb (double *x) |
Public Attributes | |
friend | SourceMultiShapelets |
Class for sources described by shapelets.
The sources are created from magnitude, scale radius, and the coefficients of their decomposition into the shapelets basis functions (Refregier et al., 2001). The coefficients can be read from a fits square array. In case the magnitude is not given as input, the constructor will read an array of values from the shapelet file header. One can then choose the desired magnitude with setActiveMag.
SourceShapelets::SourceShapelets | ( | PosType | my_z, |
PosType | my_mag, | ||
PosType | my_scale, | ||
std::valarray< PosType > | my_coeff, | ||
PosType * | my_center, | ||
PosType | my_ang, | ||
PosType | zeropoint, | ||
Band | band ) |
my_z | redshift of the source |
my_mag | magnitude |
my_scale | scale of the shapelets decomposition |
my_coeff | coefficients of the shapelets decomposition |
my_center | center (in rad) |
my_ang | rotation angle (in rad) |
zeropoint | magnitude zero point |
SourceShapelets::SourceShapelets | ( | PosType | my_z, |
PosType | my_mag, | ||
std::string | shap_file, | ||
PosType * | my_center, | ||
PosType | my_ang, | ||
PosType | zeropoint, | ||
Band | band ) |
my_z | redshift of the source |
my_mag | magnitude |
shap_file | fits file with coefficients in a square array |
my_center | center (in rad) |
my_ang | rotation angle (in rad) |
zeropoint | magnitude zero point |
SourceShapelets::SourceShapelets | ( | std::string | shap_file, |
PosType | my_ang, | ||
PosType | zeropoint, | ||
Band | band ) |
shap_file | fits file with coefficients in a square array. Mag and redshift are read from the header. |
my_ang | rotation angle (in rad) |
zeropoint | magnitude zero point |
|
virtual |
Implements Source.
|
inline |
rotate source
ang | angle in radians |
|
virtual |
Returns surface brightness in erg/cm2/sec/Hz, normalized by hplanck. Given the units of hplanck, the final units are 1/sec/cm2.
Implements Source.