NcDataPlanckLKL

NcDataPlanckLKL — Planck Likelihood interface.

Functions

Properties

char * checksum Read
char * data-file Read / Write / Construct Only
NcHIPertBoltzmann * hipert-boltzmann Read / Write
gboolean is-lensing Read
guint nparams Read

Types and Values

Object Hierarchy

    GEnum
    ╰── NcDataPlanckLKLType
    GObject
    ╰── NcmData
        ╰── NcDataPlanckLKL

Description

Interface to Planck likelihoods from the Planck Legacy Archive. This class is a wrapper to the Planck likelihoods code from the Planck Legacy Archive.

Functions

nc_data_planck_lkl_new ()

NcDataPlanckLKL *
nc_data_planck_lkl_new (const gchar *filename);

FIXME

Parameters

filename

a Planck likelihood file

 

Returns

a new NcDataPlanckLKL


nc_data_planck_lkl_full_new ()

NcDataPlanckLKL *
nc_data_planck_lkl_full_new (const gchar *filename,
                             NcHIPertBoltzmann *pb);

FIXME

Parameters

filename

a Planck likelihood file

 

pb

a NcHIPertBoltzmann

 

Returns

a new NcDataPlanckLKL


nc_data_planck_lkl_full_new_id ()

NcDataPlanckLKL *
nc_data_planck_lkl_full_new_id (NcDataPlanckLKLType id,
                                NcHIPertBoltzmann *pb);

Create a new NcDataPlanckLKL object from the given id and NcHIPertBoltzmann. If the Planck likelihood file is not found, it will be downloaded.

Parameters

id

a Planck likelihood file id NcDataPlanckLKLType

 

pb

a NcHIPertBoltzmann

 

Returns

a new NcDataPlanckLKL


nc_data_planck_lkl_get_param_name ()

const gchar *
nc_data_planck_lkl_get_param_name (NcDataPlanckLKL *plik,
                                   guint i);

FIXME

Parameters

plik

a NcDataPlanckLKL

 

i

param index

 

Returns

a string constaining the param name.

[transfer none]


nc_data_planck_lkl_get_param_names ()

gchar **
nc_data_planck_lkl_get_param_names (NcDataPlanckLKL *plik);

FIXME

Parameters

plik

a NcDataPlanckLKL

 

Returns

an array of strings constaining the param names.

[array zero-terminated=1][element-type utf8][transfer full]


nc_data_planck_lkl_set_hipert_boltzmann ()

void
nc_data_planck_lkl_set_hipert_boltzmann
                               (NcDataPlanckLKL *plik,
                                NcHIPertBoltzmann *pb);

Sets the NcHIPertBoltzmann to be used in the likelihood calculation.

Parameters


nc_data_planck_lkl_download_baseline ()

void
nc_data_planck_lkl_download_baseline (const gchar *dir);

Download the Planck baseline likelihood data to the given directory. This function will download the file `COM_Likelihood_Data-baseline_R3.00.tar.gz' from the Planck Legacy Archive and extract it to the given directory.

It requires the wget' and tar' commands to be available in the system.

Parameters

dir

a directory

 

Types and Values

NC_TYPE_DATA_PLANCK_LKL

#define NC_TYPE_DATA_PLANCK_LKL (nc_data_planck_lkl_get_type ())

enum NcDataPlanckLKLType

The Planck likelihood types.

Members

NC_DATA_PLANCK_LKL_TYPE_BASELINE_18_LOWL_TT

Planck 2018 baseline low-ell likelihood for TT.

 

NC_DATA_PLANCK_LKL_TYPE_BASELINE_18_LOWL_EE

Planck 2018 baseline low-ell likelihood for EE.

 

NC_DATA_PLANCK_LKL_TYPE_BASELINE_18_LOWL_BB

Planck 2018 baseline low-ell likelihood for BB.

 

NC_DATA_PLANCK_LKL_TYPE_BASELINE_18_LOWL_EEBB

Planck 2018 baseline low-ell likelihood for TE.

 

NC_DATA_PLANCK_LKL_TYPE_BASELINE_18_HIGHL_TT

Planck 2018 baseline high-ell likelihood for TT.

 

NC_DATA_PLANCK_LKL_TYPE_BASELINE_18_HIGHL_TTTEEE

Planck 2018 baseline high-ell likelihood for TT, TE and EE.

 

NC_DATA_PLANCK_LKL_TYPE_BASELINE_18_HIGHL_TT_LITE

Planck 2018 baseline high-ell likelihood for TT (lite).

 

NC_DATA_PLANCK_LKL_TYPE_BASELINE_18_HIGHL_TTTEEE_LITE

Planck 2018 baseline high-ell likelihood for TT, TE and EE (lite).

 

NC_DATA_PLANCK_LKL_TYPE_BASELINE_18_LENSING

Planck 2018 baseline lensing likelihood.

 

NC_DATA_PLANCK_LKL_TYPE_BASELINE_18_LENSING_CMB_MARGINALIZED

Planck 2018 baseline lensing likelihood with CMB marginalized.

 

NcDataPlanckLKL

typedef struct _NcDataPlanckLKL NcDataPlanckLKL;

Property Details

The “checksum” property

  “checksum”                 char *

Params names checksum.

Owner: NcDataPlanckLKL

Flags: Read

Default value: NULL


The “data-file” property

  “data-file”                char *

Data file.

Owner: NcDataPlanckLKL

Flags: Read / Write / Construct Only

Default value: "no-file"


The “hipert-boltzmann” property

  “hipert-boltzmann”         NcHIPertBoltzmann *

NcHIPertBoltzmann object.

Owner: NcDataPlanckLKL

Flags: Read / Write


The “is-lensing” property

  “is-lensing”               gboolean

Whether the likelihood has lensing.

Owner: NcDataPlanckLKL

Flags: Read

Default value: FALSE


The “nparams” property

  “nparams”                  guint

Number of expected params.

Owner: NcDataPlanckLKL

Flags: Read

Default value: 0