To run your own twinkles
simulations, you will need to have taken the following steps.
See this LSST Sims confluence page for install instructions. In short:
$> mkdir ~/stack
$> cd ~/stack
$> curl -O https://sw.lsstcorp.org/eupspkg/newinstall.sh
$> chmod 700 newinstall.sh
$> ./newinstall.sh
Answer yes to the two questions.
$> source loadLSST.bash
$> eups distrib install lsst_sims -t sims
$> setup lsst_sims -t sims
For security reasons, the CatSim database are behind a fairly restrictive firewall. The two ways to gain access to the database are to get your machine listed on the whitelist of IP addresses allowed through the firewall, or to establish an SSH tunnel through a shared account on one of the University of Washington computers. Below, we present the instructions for setting up to connect via the SSH tunnel. To connect via the whitelist, see the appropriate section in this document.
a) Create a directory $HOME/.lsst/
b) Create a file db-auth.paf
in that directory whose contents are
database: {
authIfno: {
host: localhost
port: 51433
user: <shared username>
password: <shared password>
}
}
c) Set the permissions on $HOME/.lsst/
to 700 using
`chmod 700 $HOME/.lsst'
d) Set the permissions on $HOME/.lsst/db-auth.paf
to 600 using
chomd 600 $HOME/.lsst/db-auth.paf
c) Email your public ssh key to Scott Daniel (scottvalscott@gmail.com
).
He will also give you the shared username and password that belongs in
$HOME/.lsst/db-auth.paf
. If you do not already have an ssh key,
instructions for creating one can be found
here.
$> mkdir ~/repos
$> cd ~/repos
$> git clone https://bitbucket.org/phosim/phosim_release.git
$> setup cfitsio
$> setup fftw
$> ./configure
You'll have to point to the correct cfitsio and fftw3 libraries and headers for your system.
$> make
$> mkdir ~/TwinklesData
$> cd ~/TwinklesData
$> python $SIMS_CATUTILS_DIR/examples/generatePhosimInput.py
This produces a file PhoSim
can run.
$> ./phosim ~/TwinklesData/phoSim_example.txt --sensor="R22_S11" -c examples/nobackground
Images show up in the "output" directory.