Skip to content

This is a repository to generate stamps of different sizes filled randomly or not with a chosen number of galaxies in LSST and Euclid filters.

License

Notifications You must be signed in to change notification settings

BastienArcelin/image_generation_GalSim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image generation with GalSim

This is a repository to generate stamps of different sizes filled randomly or not with a chosen number of galaxies in LSST and Euclid filters.

The images are generated with GalSim (github, doc) from parametric models fitted to real galaxies from the HST COSMOS catalog (which can be found from here).

Installation

  1. Clone the repository
git clone https://github.com/BastienArcelin/image_generation_GalSim
cd image_generation_GalSim
  1. Install
conda env create -f ressources/environment.yml
conda activate img_generation
  • with pip
    • Install most of the required packages
    python3 -m pip install -r ressources/requirements.txt
    
    • Install fftw3 following the instructions presented here
    • Install GalSim
    pip install galsim
    

Before starting

  1. Add a IMGEN_DATA environment variable, in the shell you are running, which points to the directory where you want your data to be stored.

Example, add to your .bashrc:

export IMGEN_DATA='/path/to/img_gen/data'
  1. You need to download the COSMOS catalog. You can find it here. You can chose the COSMOS_25.2_training_sample.tar.gz (4.4 GB).
  2. Save this file in the directory chosen for storing data (i.e. at IMGEN_DATA).

Notebook

You can find a notebook briefly describing the generation process and how to use the functions in image_generator.py can be found here

List of required packages

  • Photutils
  • GalSim
  • multiprocess (if you want to multiprocess the image generation)
  • pandas
  • matplotlib
  • numpy
  • scipy

Author

Bastien Arcelin - arcelin at apc.in2p3.fr

About

This is a repository to generate stamps of different sizes filled randomly or not with a chosen number of galaxies in LSST and Euclid filters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published