Skip to content

Commit

Permalink
Merge 9d4679a into 460c6ac
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiang87 authored Sep 10, 2018
2 parents 460c6ac + 9d4679a commit 768fd51
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dist: trusty
compiler: gcc

env:
- OS_TYPE=centos OS_VERSION=7 DOCKER_IMAGE=lsstdesc/stack-sims:w_2018_19-sims_2_8_0
- OS_TYPE=centos OS_VERSION=7 DOCKER_IMAGE=lsstdesc/stack-sims:w_2018_35-sims_2_10_0-v2

services:
- docker
Expand Down
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ execute the `setup imsim` command, and that command can be issued from
any directory. The `scons` build step needs only to be re-run if a
new command line executable is added to the `bin.src` folder.

### obs_lsstCam
The CCD pixel and LSST focalplane geometries are obtained from the
lsst/obs_lsstCam package, which is not yet part of the standard LSST
distribution. Until it is, you'll need to clone a copy, set it up,
and build:
```
$ git clone https://github.com/lsst/obs_lsstCam.git
$ cd obs_lsstCam
$ setup -r . -j
$ scons
```

## Usage
The executables in the `bin` folder should be in your path and so
should be runnable directly from the command line:
Expand All @@ -28,6 +40,7 @@ usage: imsim.py [-h] [-n NUMROWS] [--outdir OUTDIR] [--sensors SENSORS]
[--psf {DoubleGaussian,Kolmogorov,Atmospheric}]
[--disable_sensor_model] [--file_id FILE_ID]
[--create_centroid_file] [--seed SEED] [--processes PROCESSES]
[--psf_file PSF_FILE] [--image_path IMAGE_PATH]
instcat
positional arguments:
Expand All @@ -49,11 +62,18 @@ optional arguments:
PSF model to use. Default: Kolmogorov
--disable_sensor_model
disable sensor effects
--file_id FILE_ID ID string to use for checkpoint and centroid
filenames.
--file_id FILE_ID ID string to use for checkpoint filenames.
--create_centroid_file
Write centroid file(s).
--seed SEED integer used to seed random number generator
--processes PROCESSES
number of processes to use in multiprocessing mode
--psf_file PSF_FILE Pickle file containing for the persisted PSF. If the
file exists, the psf will be loaded from that file,
ignoring the --psf option; if not, a PSF will be
created and saved to that filename.
--image_path IMAGE_PATH
search path for FITS postage stamp images.This will be
prepended to any existing IMSIM_IMAGE_PATHenvironment
variable, for which $CWD is included bydefault.
```
5 changes: 5 additions & 0 deletions travis_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ setup lsst_sims
pip install nose
pip install coveralls
pip install pylint
git clone https://github.com/lsst/obs_lsstCam.git
cd obs_lsstCam
setup -r . -j
scons
cd ..
eups declare imsim -r ${TRAVIS_BUILD_DIR} -t current
setup imsim
cd ${TRAVIS_BUILD_DIR}
Expand Down

0 comments on commit 768fd51

Please sign in to comment.