GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
LensMap Struct Reference

The MOKA map structure, containing all quantities that define it. More...

#include <multimap.h>

Collaboration diagram for LensMap:

Public Member Functions

 LensMap (LensMap &&m)
 
LensMapoperator= (LensMap &&m)
 
double x_resolution ()
 resolution in Mpc
 
double y_resolution ()
 
double x_range ()
 
double y_range ()
 
bool evaluate (const PosType *x, KappaType &sigma, KappaType *gamma, PosType *alpha)
 
 LensMap (std::string fits_input_file, double angDist)
 
void read (std::string input_fits, double angDist)
 read an entire map
 
void Myread (std::string fits_input_file)
 read from a file that has been generated with LensMap::write()
 
void read_header (std::string input_fits, double angDist)
 read only header information
 
void read_sub (CPFITS_READ &cpfits, std::vector< long > &first, std::vector< long > &last, double Dist)
 read a subsection of the fits map
 
void write (std::string filename)
 write the fits file of the maps of all the lensing quantities.
 
void write (std::string filename, LensingVariable quant)
 meant to output directly in angulare units and lensing quantities
 
template<class T >
void ProcessFFTs (float zerosize, T Wphi_of_k, my_fftw_plan &plan_padded, bool do_alpha=true)
 a thread safe version of ProcessFFTs
 
template<class T >
void ProcessFFTs (T Wphi_of_k, my_fftw_plan &plan, bool do_alpha=true)
 
template<class T >
void ProcessFFTs (float zerosize, T Wphi_of_k, bool do_alpha=true)
 pre-process surface mass density map computing deflection angles and shear in FFT, generalized to work with rectangular maps
 
template<class T >
void ProcessFFTs (T Wphi_of_k, bool do_alpha=true)
 no padding
 
void make_fftw_plans (my_fftw_plan &plans, double zerosize)
 

Public Attributes

std::valarray< double > surface_density
 values for the map
 
std::valarray< float > alpha1_bar
 
std::valarray< float > alpha2_bar
 
std::valarray< float > gamma1_bar
 
std::valarray< float > gamma2_bar
 
std::valarray< float > phi_bar
 
int nx
 
int ny
 
double boxlMpc
 
double angular_pixel_size
 
Point_2d center
 
Point_2d lowerleft
 
Point_2d upperright
 boundery with centred grid
 

Detailed Description

The MOKA map structure, containing all quantities that define it.

The MOKA map, that is read in from the fits file. Its components include the lensing properties, as well as the cosmology, the size of the field of view, the redshifts of the lens and source, the properties of the cluster, etc.

Note: To use this class requires setting the ENABLE_FITS compiler flag and linking the cfits library.

Member Function Documentation

◆ write()

void LensMap::write ( std::string filename)

write the fits file of the maps of all the lensing quantities.

Unlike the read operations this will not have the h factors in everything so when reading from a file created by is you should set h to 1


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