Class RotationMeasureSkymap

Inheritance Relationships

Base Type

Class Documentation

class RotationMeasureSkymap : public SkymapTemplate<QRotationMeasure, QNumber>

A skymap container for rotation measure (RM).

Public Types

typedef tFluxContainer::iterator iterator

iterator goodies

typedef tFluxContainer::const_iterator const_iterator

Public Functions

RotationMeasureSkymap(std::size_t nside_)
void setSkymapParameter(const QNumber &p)

Setter for the skymap parameter

QNumber setSkymapParameter() const

Getter for the skymap parameter

std::size_t size() const

Size of the skymap container (same as getNPix())

std::size_t getUnmaskedPixelCount() const

Calculate the total number of unmasked pixels

QRotationMeasure getPixel(std::size_t ipix) const
double getPixelAsDouble(std::size_t i) const

Retrieve ith (

ipix) pixel as naked double

QRotationMeasure getMean() const

Calculate the mean value of unmasked pixels

bool hasMask() const

Checks if the skymap is masked

QRotationMeasure operator[](std::size_t ipix) const

Pixel accessor [] (same as getPixel)

QRotationMeasure *data()

Returns a pointer to the pixel container

void setIntegrator(std::shared_ptr<IntegratorTemplate<QRotationMeasure, QNumber>> integrator_)

Set the line of sight integrator

void setOutput()
void printPixels() const
void setMask(std::shared_ptr<SkymapMask> mask_)
std::vector<bool> getMask() const
bool isMasked(std::size_t pixel) const
void computePixel(std::size_t ipix, const std::shared_ptr<IntegratorTemplate<QRotationMeasure, QNumber>> &integrator_)
void computePixelRange(std::size_t start, std::size_t end, const std::shared_ptr<IntegratorTemplate<QRotationMeasure, QNumber>> &integrator_)
void compute()
void convertToUnits(QRotationMeasure units_, const std::string &defaultUnitsString)

output

QNumber toSkymapDefaultUnits(const QRotationMeasure pixel) const
QRotationMeasure getOutputUnits() const
std::string getOutputUnitsAsString() const
std::string getUnits() const
std::vector<float> containerToRawVector() const
void save(std::shared_ptr<outputs::Output> output) const
SkymapTemplate<QRotationMeasure, QNumber>::const_iterator begin()
const_iterator begin() const
SkymapTemplate<QRotationMeasure, QNumber>::const_iterator end()
const_iterator end() const
void setNside(std::size_t nside_)
std::size_t getNside() const
void setRes(std::size_t res_)
std::size_t getRes() const
std::size_t getNpix() const
std::string getDescription() const
void setDescription(const std::string &description)

Protected Types

typedef QRotationMeasure tPixel
typedef std::vector<tPixel> tFluxContainer

Protected Functions

void initDefaultOutputUnits(QRotationMeasure units, const std::string &unitsString)
void initContainer()
void initMask()

Protected Attributes

tFluxContainer fluxContainer
std::vector<bool> maskContainer
tPixel defaultOutputUnits
std::string defaultOutputUnitsString
QNumber skymapParameter
std::shared_ptr<SkymapMask> mask
std::shared_ptr<IntegratorTemplate<QRotationMeasure, QNumber>> integrator
std::shared_ptr<ProgressBar> progressbar
std::shared_ptr<std::mutex> progressbar_mutex
std::size_t nside
std::size_t npix
std::size_t res
std::string description