#include <HEALPixSkyInstrument.hpp>
Public Member Functions | |
Direction | bfkobs (const Position &bfr) const override |
Direction | bfky (const Position &bfr) const override |
double | crossX () const |
double | crossY () const |
double | crossZ () const |
void | determineSameObserverAsPreceding (const Instrument *precedingInstrument) override |
double | observerX () const |
double | observerY () const |
double | observerZ () const |
int | order () const |
double | radius () const |
double | upX () const |
double | upY () const |
double | upZ () const |
![]() | |
virtual Direction | bfkobs (const Position &bfr) const =0 |
virtual Direction | bfky (const Position &bfr) const =0 |
virtual void | detect (PhotonPacket *pp)=0 |
virtual void | determineSameObserverAsPreceding (const Instrument *precedingInstrument)=0 |
void | flush () |
string | instrumentName () const |
const WavelengthGrid * | instrumentWavelengthGrid () const |
bool | isSameObserverAsPreceding () const |
string | itemName () const override |
int | numScatteringLevels () const |
bool | recordComponents () const |
bool | recordPolarization () const |
bool | recordStatistics () const |
WavelengthGrid * | wavelengthGrid () const |
void | write () |
![]() | |
template<class T > | |
T * | find (bool setup=true) const |
template<class T > | |
T * | interface (int levels=-999999, bool setup=true) const |
virtual string | itemName () const |
void | setup () |
string | typeAndName () const |
![]() | |
Item (const Item &)=delete | |
virtual | ~Item () |
void | addChild (Item *child) |
const vector< Item * > & | children () const |
virtual void | clearItemListProperty (const PropertyDef *property) |
void | destroyChild (Item *child) |
virtual bool | getBoolProperty (const PropertyDef *property) const |
virtual vector< double > | getDoubleListProperty (const PropertyDef *property) const |
virtual double | getDoubleProperty (const PropertyDef *property) const |
virtual string | getEnumProperty (const PropertyDef *property) const |
virtual int | getIntProperty (const PropertyDef *property) const |
virtual vector< Item * > | getItemListProperty (const PropertyDef *property) const |
virtual Item * | getItemProperty (const PropertyDef *property) const |
virtual string | getStringProperty (const PropertyDef *property) const |
int | getUtilityProperty (string name) const |
virtual void | insertIntoItemListProperty (const PropertyDef *property, int index, Item *item) |
Item & | operator= (const Item &)=delete |
Item * | parent () const |
virtual void | removeFromItemListProperty (const PropertyDef *property, int index) |
virtual void | setBoolProperty (const PropertyDef *property, bool value) |
virtual void | setDoubleListProperty (const PropertyDef *property, vector< double > value) |
virtual void | setDoubleProperty (const PropertyDef *property, double value) |
virtual void | setEnumProperty (const PropertyDef *property, string value) |
virtual void | setIntProperty (const PropertyDef *property, int value) |
virtual void | setItemProperty (const PropertyDef *property, Item *item) |
virtual void | setStringProperty (const PropertyDef *property, string value) |
void | setUtilityProperty (string name, int value) |
virtual string | type () const |
Protected Member Functions | |
HEALPixSkyInstrument () | |
void | detect (PhotonPacket *pp) override |
void | setupSelfBefore () override |
![]() | |
Instrument () | |
~Instrument () | |
FluxRecorder * | instrumentFluxRecorder () |
void | setSameObserverAsPreceding () |
void | setupSelfAfter () override |
void | setupSelfBefore () override |
![]() | |
SimulationItem () | |
virtual bool | offersInterface (const std::type_info &interfaceTypeInfo) const |
virtual void | setupSelfAfter () |
virtual void | setupSelfBefore () |
![]() | |
Item () | |
Private Types | |
using | BaseType = Instrument |
using | ItemType = HEALPixSkyInstrument |
Private Attributes | |
double | _crossX |
double | _crossY |
double | _crossZ |
const double & | _Cx |
const double & | _Cy |
const double & | _Cz |
int | _Nside |
int | _Nx |
int | _Ny |
double | _observerX |
double | _observerY |
double | _observerZ |
int | _order |
const double & | _Ox |
const double & | _Oy |
const double & | _Oz |
double | _radius |
HomogeneousTransform | _transform |
double | _upX |
double | _upY |
double | _upZ |
const double & | _Ux |
const double & | _Uy |
const double & | _Uz |
Friends | |
class | ItemRegistry |
The HEALPixSkyInstrument class provides an all-sky instrument that does not perform any projection, but instead records fluxes onto a HEALPix tessellation of the sky sphere that guarantees equal surface areas for all pixels. (See the AllSkyInstrument class for an instrument that does perform a projection).
This class is based on the official HEALPix algorithm by Górski, K. M. et al. (2005) (https://ui.adsabs.harvard.edu/abs/2005ApJ...622..759G/abstract), as available from https://healpix.sourceforge.io, but only uses the relevant part of the algorithm.
In short, the HEALPix tessellation starts from a base tessellation of the sphere into 12 quadrilaterals. 4 quadrilaterals are formed by subdividing the equator into 4 equal segments, so that each quadrilateral has two equatorial segment endpoints as vertices, complemented with two vertices that are obtained by translating the segment midpoint away from the equator over a zenith angle
Within this base tessellation, higher order HEALPix tessellations are constructed by subdividing the 12 base quadrilaterals, as if these were simple squares in a flat Euclidian space. To guarantee that all pixels have the same surface area, this subdivision needs to use the same number of sub-pixels along each axis of the base quadrilateral. This number of sub-pixels is referred to as the HEALPix resolution parameter
After subdivision, the HEALPix tessellation will contain
HEALPix pixels can be ordered in two ways, depending on the application of interest. For many analysis tools, a hierarchical ordering is advantageous, whereby the index of neighbouring pixels are related. In practice, this so called nested ordering subdivides every base HEALPix pixel into a hierarchical quadtree structure. This is the approach used by e.g. the public Planck data maps. For visualisation purposes, the so called ring ordering is more appropriate, whereby the pixels are indexed per ring from northern to southern hemisphere, and with increasing longitude along each ring.
For our implementation, we use an alternative ordering that closely matches the ring ordering. We compute the indices
An HEALPix sky instrument consists of a sphere with a given radius, centered at the location of the instrument. Only photon packets originating outside of this sphere are detected. When a photon packet arrives, the spherical coordinates of its originating position relative to the instrument coordinate system are determined. The two resulting angular coordinates are transformed to pixel coordinates on the HEALPix sphere. The radial coordinate (i.e. the distance from the photon packet's origin to the instrument location) is used for adjusting the photon packet's luminosity contribution to the surface brightness in its target pixel. More details on the flux calibration for this "local" instrument are provided in the header of the FluxRecorder class.
This instrument does not support recording of spatially integrated flux densities.
This item type is displayed only if the Boolean expression "Level2" evaluates to true after replacing the names by true or false depending on their presence.
|
inlineprotected |
Default constructor for concrete Item subclass HEALPixSkyInstrument : "a HEALPix all-sky instrument (for Planck-like observations inside a model)" .
Returns the direction towards the observer from the given photon packet launching position, expressed in model coordinates.
Implements Instrument.
Returns the direction along the positive y-axis in a plane normal to the vector towards the observer from the given photon packet launching position, expressed in model coordinates.
Implements Instrument.
|
inline |
This function returns the value of the discoverable double property crossX : "the position of the crosshair, x component" .
This property represents a physical quantity of type "length" .
The default value for this property is given by the conditional value expression "0" .
|
inline |
This function returns the value of the discoverable double property crossY : "the position of the crosshair, y component" .
This property represents a physical quantity of type "length" .
The default value for this property is given by the conditional value expression "0" .
|
inline |
This function returns the value of the discoverable double property crossZ : "the position of the crosshair, z component" .
This property represents a physical quantity of type "length" .
The default value for this property is given by the conditional value expression "0" .
|
overrideprotectedvirtual |
This function simulates the detection of a photon packet by the instrument.
Implements Instrument.
|
overridevirtual |
This function determines whether the specified instrument has the same observer type, position and viewing direction as the receiving instrument, and if so, calls the setSameObserverAsPreceding() function to remember the fact.
Implements Instrument.
|
inline |
This function returns the value of the discoverable double property observerX : "the position of the observer, x component" .
This property represents a physical quantity of type "length" .
|
inline |
This function returns the value of the discoverable double property observerY : "the position of the observer, y component" .
This property represents a physical quantity of type "length" .
|
inline |
This function returns the value of the discoverable double property observerZ : "the position of the observer, z component" .
This property represents a physical quantity of type "length" .
|
inline |
This function returns the value of the discoverable integer property order : "HEALPix order" .
The minimum value for this property is "0" .
The maximum value for this property is "15" .
The default value for this property is given by the conditional value expression "6" .
|
inline |
This function returns the value of the discoverable double property radius : "the radius of the observer's all-sky sphere" .
This property represents a physical quantity of type "length" .
The minimum value for this property is "]0" .
|
overrideprotectedvirtual |
This function verifies that all attribute values have been appropriately set and performs setup for the instrument. Its most important task is to determine an appropriate transformation given the instrument position and configuration.
Reimplemented from SimulationItem.
|
inline |
This function returns the value of the discoverable double property upX : "the upwards direction, x component" .
This property represents a physical quantity of type "length" .
The default value for this property is given by the conditional value expression "0" .
|
inline |
This function returns the value of the discoverable double property upY : "the upwards direction, y component" .
This property represents a physical quantity of type "length" .
The default value for this property is given by the conditional value expression "0" .
|
inline |
This function returns the value of the discoverable double property upZ : "the upwards direction, z component" .
This property represents a physical quantity of type "length" .
The default value for this property is given by the conditional value expression "1" .