Class

NumCosmoMathSphereMap

Description [src]

final class NumCosmoMath.SphereMap : GObject.Object
{
  /* No available fields */
}

An re-implementation of Healpix.

Map pixalization/manipulation algorithms, Ylm decomposition.

Ancestors

Constructors

ncm_sphere_map_new

Creates a new NcmSphereMap for a given nside.

Functions

ncm_sphere_map_clear

If smap is not NULL, decreases the reference count of smap. When its reference count drops to 0, the object is finalized (i.e. its memory is freed). Set smap to NULL.

Instance methods

ncm_sphere_map_add_noise

Adds a Gaussian noise with $\sigma=$ sd and zero mean to each pixel.

ncm_sphere_map_add_to_ang

Adds s to the signal at the pixel corresponding to theta and phi.

ncm_sphere_map_add_to_vec

Adds s to the signal at the pixel corresponding to vec.

ncm_sphere_map_alm2map

Compute map pixels from current $a_{\ell{}m}$.

ncm_sphere_map_ang2pix_nest

Converts spherical coordinates to a pixel index in NESTED ordering.

ncm_sphere_map_ang2pix_ring

Converts spherical coordinates to a pixel index in RING ordering.

ncm_sphere_map_calc_Ctheta

Computes the two-point correlation function $C(\theta)$ from the precomputed $C_\ell$.

ncm_sphere_map_clear_pixels

Clear the pixels of smap, i.e. set all pixels to zero.

ncm_sphere_map_compute_cross_Cl

Computes the cross-spectrum between two maps: $$C_\ell^\mathrm{cross} = \frac{1}{2\ell+1} \sum_{m=-\ell}^\ell \mathrm{Re}(a_{lm}^{(1)} \bar{a}_{lm}^{(2)})$$.

ncm_sphere_map_free

Decreases the reference count of smap. When its reference count drops to 0, the object is finalized (i.e. its memory is freed).

ncm_sphere_map_get_Cl

Gets the value of $C_{\ell}$ previously calculated by ncm_sphere_map_prepare_alm().

ncm_sphere_map_get_alm

Gets the value of $a_{lm}$ previously calculated by ncm_sphere_map_prepare_alm().

ncm_sphere_map_get_cap_size

Get the number of pixels of the north cap of smap.

ncm_sphere_map_get_coordsys

Gets the coordinate system of smap.

ncm_sphere_map_get_iter

Gets the number of iterations used in the spherical harmonic transform.

ncm_sphere_map_get_lmax
No description available.

ncm_sphere_map_get_middle_size

Get the number of pixels of the middle of smap. That is the number of pixels of the middle rings.

ncm_sphere_map_get_npix

Gets the number of pixels of smap.

ncm_sphere_map_get_nrings

Get the number of rings of smap.

ncm_sphere_map_get_nrings_cap

Get the number of rings of the north cap of smap.

ncm_sphere_map_get_nrings_middle

Get the number of rings of the middle of smap.

ncm_sphere_map_get_nside

Get the nside parameter of smap.

ncm_sphere_map_get_nsmap
No description available.

ncm_sphere_map_get_order

Gets the pixel ordering of smap.

ncm_sphere_map_get_pix

Gets the value of pixel index by i.

ncm_sphere_map_get_ring_first_index

Get the first pixel index of the ring r_i of smap.

ncm_sphere_map_get_ring_size

Get the number of pixels of the ring r_i of smap.

ncm_sphere_map_load_fits

Loads a NcmSphereMap from a fits file.

ncm_sphere_map_load_from_fits_catalog

Loads a NcmSphereMap from a fits catalog.

ncm_sphere_map_nest2ring

Converts a pixel index from NESTED to RING ordering.

ncm_sphere_map_pix2ang_nest

Converts a pixel index from NESTED to spherical coordinates and returns the angles theta and phi.

ncm_sphere_map_pix2ang_ring

Converts a pixel index from RING to spherical coordinates and returns the angles theta and phi.

ncm_sphere_map_pix2vec_nest

Converts a pixel index from NESTED to a unit vector.

ncm_sphere_map_pix2vec_ring

Converts a pixel index from RING to a unit vector.

ncm_sphere_map_prepare_alm

Calculates the $a_{\ell{}m}$ from the map smap, using $\ell_\mathrm{max}$ set by ncm_sphere_map_set_lmax(). If $\ell_\mathrm{max} = 0$ nothing is done.

ncm_sphere_map_ref

Increases the reference count of smap.

ncm_sphere_map_ring2nest

Converts a pixel index from RING to NESTED ordering.

ncm_sphere_map_save_fits

Saves a NcmSphereMap to a fits file.

ncm_sphere_map_set_Cls

Set map $C_l$s.

ncm_sphere_map_set_alm

Sets the value of $a_{lm}$.

ncm_sphere_map_set_coordsys

Sets the coordinate system of smap.

ncm_sphere_map_set_iter

Sets the number of iterations to use in the spherical harmonic transform. Iterations improve the accuracy of the transform for undersampled maps (when lmax < 3 * nside). iter=0 uses only the direct transform, iter=3 (recommended) performs 3 refinement iterations.

ncm_sphere_map_set_lmax

Prepare the object to calculate $a_{\ell{}m}$ and/or $C_\ell$, up to $\ell=$lmax.

ncm_sphere_map_set_map

Set map pixels to map using current ordering.

ncm_sphere_map_set_nside

Sets the nside parameter of smap.

ncm_sphere_map_set_order

Sets the pixel ordering of smap.

ncm_sphere_map_update_Cl

Updates the values of $C_\ell$ based on the current $a_{lm}$.

ncm_sphere_map_vec2pix_nest

Converts a unit vector to a pixel index in NESTED ordering.

ncm_sphere_map_vec2pix_ring

Converts a unit vector to a pixel index in RING ordering.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

NumCosmoMath.SphereMap:coordsys
No description available.

NumCosmoMath.SphereMap:iter
No description available.

NumCosmoMath.SphereMap:lmax
No description available.

NumCosmoMath.SphereMap:nside
No description available.

NumCosmoMath.SphereMap:order
No description available.

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.

Class structure

struct NumCosmoMathSphereMapClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.