/
Installing and using dsimulator in a Docker container

Installing and using dsimulator in a Docker container

This page describes the instructions to install and run dsimulator in a Docker container. The installation instructions and dsimulator utilization have been tested on macOS Big Sur v11.5.2.

Installation

If you skip the last step, you will only have access to directories under the iraf_docker installation directory.

Running Pyraf in the container

  • Launch Pyraf:

    • cd $HOME/iraf_docker

    • ./pyraf2

  • The Pyraf prompt (-->) will appear in a few seconds.

  • The directory $HOME/iraf_docker will be mounted on /home/iraf/data.

    • pwd will show /home/iraf/data.

    • ls will show all the files and directories within your working data directory.

  • Change to your working data directory. Note that the working data directory should be under $HOME/iraf_docker, otherwise it will not be seen by Pyraf.

  • Load the deimos package, edit the dsimulator parameters and launch dsimulator

    • deimos

    • epar dsim

    • dsim

Notes on Pyraf

The saveParList() and setParList() methods in Pyraf can be used to save a parameter list in your working directory and and set it at a later time:

  • To save the current parameters: iraf.deimos.dsimulator.saveParList("myparams.par")

  • To set the parameters in myparams.par : iraf.deimos.dsimulator.setParList("myparams.par")

  • To set the parameters in myparams.par and launch dsimulator: iraf.deimos.dsimulator(ParList="myparams.par")

For additional information about how to use Pyraf see:

 

Related content

DEIMOS Readiness
DEIMOS Readiness
More like this
Option 1: direct conversion from iraf to python
Option 1: direct conversion from iraf to python
More like this
How to support & observe with HIRES
How to support & observe with HIRES
More like this