using namespace std;
try {
std::string file_catalogue = "../input/catalogue.csv";
std::vector<int> column = {1,2,3};
const double N_R = 2.;
std::cout << "I'm constructing the sub-regions used for jackknife and bootstrap..." << std::endl;
const int nRa = 3, nDec = 3;
double ell_min=18.;
double ell_max=21.;
const int Nell=3;
const std::string dir_output = "../output/";
const std::string dir_correlation_output="../../clustering/output/";
const std::string file_correlation_output="xi_angular.dat";
const std::string dir_correlation_input="";
const std::string file_correlation_input="";
const int n_lines_header=1;
const double angMin = 1;
const double angMax = 1000;
const int nbins = 100;
const double shift = 0.5;
cbl::measure::angularpk::PowerSpectrum_angular Pow{catalogue, random_catalogue, ell_min, ell_max, Nell, power_spectrum_bintype, angMin, angMax, nbins, shift, correlation_angular_Units,
cbl::BinType::_linear_};
Pow.measure(estimator, dir_correlation_input, file_correlation_input, n_lines_header, inputUnits, correlation_bintype,
cbl::measure::ErrorType::_Jackknife_, dir_correlation_output, file_correlation_output);
Pow.write(dir_output, "Cl_fast.dat");
Pow2.write(dir_output, "Cl_spherical_harmonic.dat");
}
return 0;
}
Generic functions that use one or more classes of the CosmoBolognaLib.
int main()
main function to create the logo of the CosmoBolognaLib
The class PowerSpectrum_angular.
const char * what() const noexcept override
the error description
The class PowerSpectrum_angular.
void measure(const AngularEstimator estimator=AngularEstimator::_Fast_, const std::string dir_correlation_input="", const std::string file_correlation_input="", const int n_lines_header=1, CoordinateUnits inputUnits=CoordinateUnits::_arcminutes_, BinType input_binType=BinType::_logarithmic_, cbl::measure::ErrorType errorType=ErrorType::_Poisson_, const std::string dir_correlation_output=par::defaultString, const std::string file_correlation_output="xi_angular.dat", const int nMocks=0)
measure the angular power spectrum
@ _createRandom_square_
random catalogue with square geometry in observed coordinates (R.A., Dec)
@ _Planck15_
Planck collaboration 2015, paper XIII: Table 4, TT,TE,EE+lowP+lensing.
AngularEstimator
the angular two-point correlation estimator type
@ _Fast_
the fast estimator
@ _SphericalArmonic_
the spherical armonic estimator
@ _Jackknife_
Jackknife resampling.
void set_ObjectRegion_RaDec(catalogue::Catalogue &data, const int nCells_Ra, const int nCells_Dec, const bool use_colatitude=true)
set the object region in angular SubBoxes
@ _observed_
observed coordinates (R.A., Dec, redshift)
CoordinateUnits
the coordinate units
@ _radians_
angle in radians
@ _arcminutes_
angle in arcminutes
@ _logarithmic_
logarithmic binning