COSMOS Startup

COSMOS Startup

  1. Open the COSMOS dark slide in the Cassegrain cage
  2. Logon to the observer2 console:
    • username: cosmos
    • password: **********
  3. Open a terminal window on observer2
  4. From the terminal window, logon to the cosmosspare computer to see if the COSMOS vncserver for observing is running
    • ssh -l observer cosmosspare-4m.ctio.noao.edu
    • password: **********
    • ls -l .vnc
    • If the vncserver is running, you should see a file "cosmosspare-4m:20.pid"
    • To start a vncserver, execute the command
      • ./bin/vncstart
    • To stop a running vncserver, execute the command
      • ./bin/vncstop
  5. Exit the ssh session to cosmosspare-4m.ctio.noao.edu on the observer2 terminal window
  6. Open the vncviewer from the terminal window of the cosmos account on observer2
    • vncviewer -Shared cosmosspare-4m.ctio.noao.edu:20 &
    • password: **********
  7. You should now have a vncviewer window open on the observer2 console  
    • Use the mouse to expand the vncviewer screen to its limits.  
    • In the vncviewer, you should see a terminal window open that has the title "COSMOS Desktop"
  8. From the vncviewer "COSMOS Desktop" terminal window, logon to the cosmos observing computer
    • ssh -X -Y -l observer cosmos-4m.ctio.noao.edu
    • password: ********
  9. Open another terminal window from the "COSMOS Desktop" window using the following command
    • xterm &
  10. Start the COSMOS observing software (i.e., NOCS) from either of the open terminal windows on the vncviewer desktop
    • ./bin/fixlink
    • nocs start hardware
    • nocs start all
    • nocs start klog (optional)
  11. Windows will now start to appear on the vncviewer
  12. In the "Data Handling System Supervisor" window
    • Click on the "Paths & Files" tab
    • Set the "Raw Image Dir" to the proper date (YYYYMMDD) and apply the change
    • Set the "Image Root Name" to the desired value (e.g., night1, night2, etc.) and apply the change
    • Click on the "Process Status" tab
  13. In the "NOCS Monsoon Supervisor Layer (NMSL)" window
    • Watch the text screen as the detector controller is initializing
    • If the background to the text screen is orange or yellow (not-white), the controller has initialized in simulation mode
    • Simulation mode is caused by the following
      • The Torrent controller is turned off
      • The fiber is not properly connected
      • The ethernet cable is not plugged into the proper port (Port 17) in the Cassegrain cage
    • To fix the simulation mode problem stop the NOCS and ask Observer Support and/or Telescope Operations to check the fiber, cables, and power supply to the Torrent controller and restart the NOCS from Step 10 in this guide.
    • Verify that the controller voltages are in range
      • If the voltages are not in range run the follwoing from the command line
      • nmslReset
    • Click on the "Options" button and select "Hide Text Window" if desired
  14. Open the "NOCS Telescope Control System (NTCS)" window from the button on the toolbar
    • Click on the "Options" button and select "Enable Command Buttons"
    • Click on the "Options" button and select "Hide Text Window" if desired
  15. Open the "NOCS Instrument Control System (NICS)" window from the button on the toolbar
    • Click on the "Options" button and select "Enable Command Buttons"
    • Click on the "Options" button and select "Hide Text Window" if desired
  16. The "NOAO KOSMOS Spectrograph (NGUI)" window should be open on the screen
    • Click on the "Options" button and unselect "Include Lamp Control?"
    • Click on the "Options" button and unselect "Include Lamp Prompt?"
    • Click on the "Options" button and select "Set Project"
      • Update the information in set project
      • Select "Save" when completed
      • From a terminal window, issue the following command
        • nocs set project
  17. Start IRAF from a terminal window
    • Open an xgterm to run IRAF by executing the following commands
      • cd /home/observer
      • xgterm &
    • Switch to the xgterm and execute the following to start IRAF
      • cl
    • After IRAF has started, open a ds9 window from within IRAF
      • !ds9 &
    • Change directory so you are in the data directory that you set in Step 12
      • cd /data2/observer/YYYYMMDD
    • Start IRAF packages that you will need for observing
      • obsutil
      • mscred
  18. You are now ready to create observing scripts and start observing

COSMOS Shutdown

  1. Go to one of the terminal windows
  2. Stop the NOCS software
    • nocs stop all
    • nocs stop hardware
    • nocs stop klog
  3. Close the IRAF and ds9 windows, if desired.  If you are observing for multiple nights you may want to keep these running.

COSMOS Restart

Sometimes the COSMOS Data Handling System (DHS) will freeze during readout.  If this occurs follow the steps below.

  1. Stop the NOCS from a terminal window
    • nocs stop all
    • nocs stop hardware
    • nocs stop klog
  2. Logon to the COSMOS DHS computer
    • ssh -l monsoon cosmosdhs-4m.ctio.noao.edu
    • password: **********
  3. Clear the temporary files that are causing the problem
    • /dhs/bin/zzkpvm
    • cd /tmp
    • ls -a
    • rm .smc*
  4. Exit the COSMOS DHS computer
  5. Start the NOCS software
    • /home/observer/bin/fixlink
    • nocs start hardware
    • nocs start all
    • nocs start klog
  6. Follow steps 14-16 from the COSMOS Startup Guide