try {
const std::string file_catalogue = "../input/cat.dat";
const double N_R = 3.;
const std::string dir_pairs = "../output/";
const std::string dir_output = "../output/";
const double rpMin = 5.;
const double rpMax = 50.;
const int nbins_D1 = 10;
const double shift_D1 = 0.5;
const double piMin = 5.;
const double piMax = 50.;
const int nbins_D2 = 10;
const double shift_D2 = 0.5;
const auto xi2DCart =
cbl::measure::twopt::TwoPointCorrelation::Create(
cbl::measure::twopt::TwoPType::_2D_Cartesian_, catalogue, random_catalogue,
cbl::BinType::_linear_, rpMin, rpMax, nbins_D1, shift_D1,
cbl::BinType::_linear_, piMin, piMax, nbins_D2, shift_D2);
xi2DCart->write(dir_output, "xi_rp_pi_linlin.dat");
}
return 0;
}
int main()
main function to create the logo of the CosmoBolognaLib
The class TwoPointCorrelation2D.
const char * what() const noexcept override
the error description
static std::shared_ptr< TwoPointCorrelation > Create(const TwoPType type, const catalogue::Catalogue data, const catalogue::Catalogue random, const BinType binType, const double Min, const double Max, const int nbins, const double shift, const CoordinateUnits angularUnits=CoordinateUnits::_radians_, std::function< double(double)> angularWeight=nullptr, const bool compute_extra_info=false, const double random_dilution_fraction=1.)
static factory used to construct two-point correlation functions of any type
@ _createRandom_box_
random catalogue with cubic geometry (or parallelepiped) in comoving coordinates
@ _Planck15_
Planck collaboration 2015, paper XIII: Table 4, TT,TE,EE+lowP+lensing.
@ _2D_Cartesian_
2D two-point correlation function in Cartesian coordinates, ξ(rp,π)
@ _Poisson_
Poissonian error.
@ _observed_
observed coordinates (R.A., Dec, redshift)