GLAMERDOC++
Gravitational Lensing Code Library
Public Member Functions | List of all members
SourcePixelled Class Reference

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SourcePixelled() [1/2]

SourcePixelled::SourcePixelled ( PosType  my_z,
PosType *  my_center,
int  my_Npixels,
PosType  my_resolution,
PosType *  arr_val,
PosType  zero_point,
Band  band 
)
Parameters
my_zredshift of the source
my_centercenter (in rad)
my_Npixelsnumber of pixels per side
my_resolutionresolution (in rad)
arr_valarray of pixel values (must be of size = Npixels*Npixels)
zero_pointmagnitude zero point
bandband of the source

◆ SourcePixelled() [2/2]

template<typename T >
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.

Parameters
gal_mapInput image and information
my_zredshift of the source
factoroptional rescaling factor for the flux
bandband of the source

Member Function Documentation

◆ SurfaceBrightness()

PosType SourcePixelled::SurfaceBrightness ( const PosType *  y) const
virtual

Surface brightness of source in grid coordinates not source centered coordinates.

The units shuld be ergs / s / Hz / cm^2

Implements Source.


The documentation for this class was generated from the following files: