next up previous contents
Next: Appendix E: Relevants parts Up: No Title Previous: Appendix C: DAS commands

Appendix D: Example DAS/ICS observing scripts

As the user interface of the DAS/ICS runs through a normal UNIX TCSH environment, you can use scripts to execute groups of commands successively. You can edit these script using VI, EMACS, or XEMACS. We advise you to script the commands sequentially, i.e. not using the & character to put the processes in the background.

Below follow two examples of scripts, one using a command line parameter that is used to pass the object name through, and one script that does not use a command line parameter.


If the following script were in a file called myscript.csh, than one would invoke it by typing

          > chmod 755 myscript.csh
          > myscript.csh NGC43210
on the command line. The CHMOD routine has to be run only once. The script makes BVRI exposures and can be used when target acquisition and guiding have been accomplished.

#!/bin/csh
# When passing parameters, the line above is essential,
# is NOT a comment, and should be the first line in the file !!!
#
filter B              # move the filter wheel
run 40 "$1 b-band"    # expose 40 sec
filter V              # move the filter wheel
run 30 "$1 v-band"    # expose 30 sec
filter R              # move the filter wheel
run 20 "$1 r-band"    # expose 20 sec
filter I              # move the filter wheel
run 20 "$1 i-band"    # expose 20 sec
echo "READY"
beep                  # ring the bell to warn you
#


If the following script were in a file called myscript.csh, than one would invoke it by typing

          > chmod 755 myscript.csh
          > myscript.csh
on the command line.

#
filter B                    # move the filter wheel
run 40 "NGC43210 b-band"    # expose 40 sec
filter V                    # move the filter wheel
run 30 "NGC43210 v-band"    # expose 30 sec
filter R                    # move the filter wheel
run 20 "NGC43210 r-band"    # expose 20 sec
filter I                    # move the filter wheel
run 20 "NGC43210 i-band"    # expose 20 sec
echo "READY"
beep                        # ring the bell to warn you
#




1999-11-12