conv_fields_cosmosis_flask module
Convert the 3x2pt data calculated from CosmoSIS into the correct file + field conventions required for the map generation by Flask
- catalogue_sim.conv_fields_cosmosis_flask.conversion_config(pipeline_variables_path)
Set up a config dictionary to execute the CosmoSIS-Flask file conversion based on pipeline parameters specified in a given input variables file
Parameters
- pipeline_variables_path(str)
Path to location of set_variables_cat.ini file
Returns
Dictionary of pipeline and file conversion parameters
- catalogue_sim.conv_fields_cosmosis_flask.execute(config_dict)
Convert the 3x2pt data files output from CosmoSIS into the correct field + naming conventions for Flask
Parameters
- config_dict(dict)
Dictionary of pipeline and field parameters for the 3x2pt simulation
- catalogue_sim.conv_fields_cosmosis_flask.main()
Generate and save the Flask 3x2pt field data files by reading in the pipeline variables file as environment variable, then setting up the config dictionary and converting the CosmoSIS field information saved on disk
- catalogue_sim.conv_fields_cosmosis_flask.normalise_power(raw_cls, raw_ells)
Convenience function to turn CosmoSIS output data (raw Cl power spectra) into normalised power spectra for input into Flask
Parameters
- raw_cls(arr)
Array of raw Cls
- raw_ells(arr)
Array of raw ells
Returns
Array of Normalised Cls