Giter VIP home page Giter VIP logo

colore's Introduction

CoLoRe

CoLoRe is a parallelized code to generate fast 3D realization of a wide variety of cosmological observations.

1 Methods

The methods used by CoLoRe are described in Ramirez-Perez et al. 2021.

When in doubt, bear in mind that by default CoLoRe uses the following units:

  • Lenghts: Mpc/h
  • Angles: degrees

2 Compilation and usage

To compile CoLoRe, open the Makefile and edit it according to your system. The default options (except for the paths to the external libraries) should work for most systems.

2.1 Compilation options

The following compilation flags, tunable in the Makefile, can be modified to control the behaviour of CoLoRe:

  • CoLoRe may be very memory-demanding. To minimize the memory overhead use single precision floating point (USE_PRECISION = yes).
  • OpenMP parallelization is enabled by setting the option USE_OMP to "yes".
  • MPI parallelization is enabled by setting the option USE_MPI to "yes".
  • The default bias model in CoLoRe is exponential. To select a different bias model add -D_BIAS_MODEL_2 (exp-truncated) or -D_BIAS_MODEL_3 (truncated).

2.2 Dependencies

CoLoRe uses 4 external packages:

  • GSL. The GNU Scientific Library (tested for versions 3.*)
  • FFTW. The Fastest Fourier Transform of the West (versions 3.*)
  • CFITSIO. FITS format library. This package is optional.
  • HDF5. HDF5 format library. This package is optional. The paths to the corresponding headers and libraries should be correctly set in the Makefile.

2.3 Running the code

Once the Makefile has been editted, typing 'make' should generate the executable 'CoLoRe'. To run CoLoRe just type

mpirun -np ./CoLoRe <param_file>

where <param_file> is the path to the parameter file described in section 3.

3 Parameter file and examples.

The behaviour of CoLoRe is mainly controlled by the input param file. The param file is basically a set of name-value pairs. Any blank lines, and anything beyond a #-symbol will be ignored. We provide a sample param file that includes all the input parameters needed by CoLoRe. The comments included in this file explain the meaning and functionality of these parameters.

We also provide an ipython notebook that demonstrates how to generate all the different probes implemented in CoLoRe. The notebook also exemplifies how to interpret the different outputs.

4 License

CoLoRe is distributed under the GPL license (see COPYING in the root directory). We kindly ask you to cite the companion paper Ramirez-Perez et al. 2021 when using the code.

5 Contact

Regarding bugs, suggestions, questions or petitions, feel free to contact the authors: David Alonso: [email protected] Cesar Ramirez: [email protected]

colore's People

Contributors

andreufont avatar cramirezpe avatar damonge avatar dkirkby avatar fjaviersanchez avatar jfarr03 avatar rupert-allison avatar slosar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.