|
GLAMERDOC++
Gravitational Lensing Code Library
|
Class for sources described by an array of pixels. More...
#include <source.h>
Inherits SourceColored.
Public Member Functions | |
| SourcePixelled (PosType my_z, PosType *center, int Npixels, PosType resolution, PosType *arr_val, PosType zero_point, Band my_band) | |
| template<typename T > | |
| SourcePixelled (const PixelMap< T > &gal_map, PosType z, PosType factor, PosType zero_point, Band my_band) | |
| Creates a SourcePixelled from a PixelMap image. The idea is to use stamps of observed galaxies as input sources for simuations. Surface brightness of the source is conserved, taking into account the input pixel size. Factor allows for rescaling of the flux. More... | |
| PosType | SurfaceBrightness (const PosType *y) const |
| void | printSource () |
| PosType | getTotalFlux () const |
| PosType | getRadius () const |
| PosType * | getEll () |
| PosType | getQuad (int i, int j) |
| PosType | getSize () |
| PosType * | getCentroid () |
| PosType | getMag () |
Class for sources described by an array of pixels.
The sources are created as a square array of pixels of dimension Npixels x Npixels and pixel size equal to resolution.
| SourcePixelled::SourcePixelled | ( | PosType | my_z, |
| PosType * | my_center, | ||
| int | my_Npixels, | ||
| PosType | my_resolution, | ||
| PosType * | arr_val, | ||
| PosType | zero_point, | ||
| Band | band | ||
| ) |
| my_z | redshift of the source |
| my_center | center (in rad) |
| my_Npixels | number of pixels per side |
| my_resolution | resolution (in rad) |
| arr_val | array of pixel values (must be of size = Npixels*Npixels) |
| zero_point | magnitude zero point |
| band | band of the source |
| SourcePixelled::SourcePixelled | ( | const PixelMap< T > & | gal_map, |
| PosType | my_z, | ||
| PosType | factor, | ||
| PosType | my_zero_point, | ||
| Band | band | ||
| ) |
Creates a SourcePixelled from a PixelMap image. The idea is to use stamps of observed galaxies as input sources for simuations. Surface brightness of the source is conserved, taking into account the input pixel size. Factor allows for rescaling of the flux.
The units of the input image are assumed to be in ergs/s/cm^2/Hz.
| gal_map | Input image and information |
| my_z | redshift of the source |
| factor | optional rescaling factor for the flux |
| band | band of the source |
|
virtual |
Surface brightness of source in grid coordinates not source centered coordinates.
The units shuld be ergs / s / Hz / cm^2
Implements Source.
1.8.18