Examples for GLASS#

These examples show how GLASS, the Generator for Large Scale Structure, can be used in practice. They are often a good starting point for more complicated and realistic simulations.

To run the examples yourself, you need to have GLASS installed. To install the specific version of GLASS for the examples you are reading:

$ pip install glass

The examples currently require CAMB to produce angular matter power spectra and for the cosmological background. Make sure you have CAMB installed:

$ python -c 'import camb'  # should not give an error

If you want to compute the angular matter power spectra in the examples, you need the glass.ext.camb package:

$ pip install glass.ext.camb

Basic examples#

To get started, these examples focus on simulating one thing at a time.

Galaxy distribution

Galaxy distribution

Matter distribution

Matter distribution

Matter shell definition

Matter shell definition

Photometric redshifts

Photometric redshifts

Weak lensing

Weak lensing

Advanced examples#

More advanced examples, combining multiple interacting generators.

Galaxy shear

Galaxy shear

Stage IV Galaxy Survey

Stage IV Galaxy Survey