Class
NumCosmoMathSkyFootprintRectangular
Description [src]
final class NumCosmoMath.SkyFootprintRectangular : NumCosmoMath.SkyFootprint
{
/* No available fields */
}
Rectangular sky footprint in right ascension and declination.
A NcmSkyFootprint covering the rectangle
$[\mathrm{ra}\mathrm{min}, \mathrm{ra}\mathrm{max}] \times
[\mathrm{dec}\mathrm{min}, \mathrm{dec}\mathrm{max}]$ (degrees). Positions
are sampled uniformly on the sphere patch: right ascension uniform in its
range and declination uniform in $\sin(\mathrm{dec})$. The area is
$\Delta\mathrm{ra}\,[\sin(\mathrm{dec}\mathrm{max}) - \sin(\mathrm{dec}\mathrm{min})]$,
with $\Delta\mathrm{ra}$ in radians, and the density of ncm_sky_footprint_density() is
\begin{equation}
p(\mathrm{ra}, \mathrm{dec}) = \frac{\cos(\mathrm{dec})}{\Delta\mathrm{ra}\,
\frac{180}{\pi}\left[\sin(\mathrm{dec}\mathrm{max}) - \sin(\mathrm{dec}\mathrm{min})\right]}
\end{equation}
inside the rectangle, with $\Delta\mathrm{ra}$ in degrees.
The limits must satisfy $-90 \le \mathrm{dec}\mathrm{min} < \mathrm{dec}\mathrm{max} \le 90$
and $0 < \mathrm{ra}\mathrm{max} - \mathrm{ra}\mathrm{min} \le 360$; other values
abort. Right ascension is compared as given, without wrapping at 0 or 360 degrees: a
patch across $\mathrm{ra} = 0$ is set with a negative $\mathrm{ra}\mathrm{min}$ (or
$\mathrm{ra}\mathrm{max} > 360$), and positions must use the same convention. A limit
that is not given, at construction or later as NULL, spans the whole sphere in that
coordinate: $[0, 360]$ in right ascension and $[-90, 90]$ in declination.
Constructors
ncm_sky_footprint_rectangular_new
Creates a new NcmSkyFootprintRectangular covering the given rectangle.
Functions
ncm_sky_footprint_rectangular_clear
If rect is different from NULL, decreases its reference count and sets
rect to NULL.
Instance methods
ncm_sky_footprint_rectangular_set_dec_lim
Sets the declination limits of rect, which must satisfy
$-90 \le$ dec_min $<$ dec_max $\le 90$.
ncm_sky_footprint_rectangular_set_ra_lim
Sets the right ascension limits of rect; the span must be positive and at most 360
degrees, see NcmSkyFootprintRectangular.
Methods inherited from NcmSkyFootprint (7)
ncm_sky_footprint_contains
Checks whether the position (ra, dec) lies within footprint.
ncm_sky_footprint_density
Computes the probability density of the position (ra, dec) with respect to
$\mathrm{d}\mathrm{ra}\,\mathrm{d}\mathrm{dec}$, both in degrees, returning zero
outside the footprint. It integrates to one over the footprint in these
coordinates, so for positions uniform on the sphere it carries the factor
$\cos(\mathrm{dec})$; it is not a density per unit solid angle.
ncm_sky_footprint_free
Decreases the reference count of footprint by one.
ncm_sky_footprint_gen_ra_dec
Samples a position uniformly distributed within footprint.
ncm_sky_footprint_get_area
Gets the solid angle covered by footprint.
ncm_sky_footprint_ln_density
Computes the natural logarithm of ncm_sky_footprint_density() at (ra, dec),
returning negative infinity outside the footprint.
ncm_sky_footprint_ref
Increases the reference count of footprint by one.
Properties
NumCosmoMath.SkyFootprintRectangular:dec-lim
The declination limits (min, max) in degrees; NULL, the default, is $[-90, 90]$.
NumCosmoMath.SkyFootprintRectangular:ra-lim
The right ascension limits (min, max) in degrees; NULL, the default, is $[0, 360]$.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.