LSST-imsim
Installation
Installation
source /sps/lsst/software/lsst_sims/sims_2_6_0/loadLSST.bash setup lsst_sims git clone https://github.com/LSSTDESC/imSim cd imSim git checkout 61e2eab4cd29dfaf25de9f16b9d9de0e1895b320 eups declare -r . imsim -t current scons setup imsim export PATH=$PWD/bin:$PATH cd .. imsim.py --help
Remarque:
- la version du package git imSim doit être compatible avec l'environnement de simulation installé au CCIN2P3. Il n'est pas garantie que la branche master actuelle fonctionne avec la version 'sims_2_6_0', ce qui explique l'utilisation d'un numéro de commit 61e2ea... avec lequel la compatibilité est assurée.
imSim help
$imsim.py --help usage: imsim.py [-h] [-n NUMROWS] [--outdir OUTDIR] [--sensor SENSOR] [--config_file CONFIG_FILE] [--log_level {DEBUG,INFO,WARN,ERROR,CRITICAL}] [--psf {DoubleGaussian,Kolmogorov}] [--checkpoint_file CHECKPOINT_FILE] [--nobj_checkpoint NOBJ_CHECKPOINT] [--seed SEED] file positional arguments: file The instance catalog optional arguments: -h, --help show this help message and exit -n NUMROWS, --numrows NUMROWS Read the first numrows of the file. --outdir OUTDIR Output directory for eimage file --sensor SENSOR Sensor to simulate, e.g., "R:2,2 S:1,1".If None, then simulate all sensors with sources on them --config_file CONFIG_FILE Config file. If None, the default config will be used. --log_level {DEBUG,INFO,WARN,ERROR,CRITICAL} Logging level. Default: "INFO" --psf {DoubleGaussian,Kolmogorov} PSF model to use; either the double Gaussian from LSE=40 (equation 30), or the Kolmogorov convolved with a Gaussian proposed by David Kirkby at the 23 March 2017 SSims telecon --checkpoint_file CHECKPOINT_FILE Checkpoint file name. --nobj_checkpoint NOBJ_CHECKPOINT # objects to process between checkpoints --seed SEED integer used to seed random number generator
Test basique
$imsim.py --outdir imsim_out imSim/tests/shear_test_instcat.txt $ll imsim_out total 63648 -rw-rw----+ 1 colley lsst 65162880 Aug 3 13:19 lsst_e_161899_R22_S11_r.fits