SOME NOTES ON OBSERVING WITH SuperAAPS
SuperAAPS is a DramaTCL GUI that links together several of the AAT’s systems which are used for Planet Search observing. It aims to combine them together into an integrated observing system that improves the efficiency, reliability and quality of AAPS data. The systems that SuperAAPS makes use of are
-
-
•The ODC (ie. Detector Controller),
-
•PTCS (Portable Telescope Control System),
-
•Guider,
-
•Exposure Meter,and
-
•UCLES (via its underlying task known as UMIT)
-
-
However, they were not exactly designed with automated interaction in mind. Interoperability has improved in the last few years, and saaps now works reliably about 95% of the time. However, to make further improvements, failures need to be reported to me (with times and detailed descriptions) so I can track down the remaining instabilities in the system. If I don't find out what's going wrong, it will never get fixed!
Chris T. 13/02/2011 .

WHAT'S NEW
August 2011
-
✦The Apogee CCD in the exposure meter has been replaced, and the meter has been recommissioned and is back in operation.
-
✦CYCLOPS or UCLES - The SuperAAPS system can now run both regular AAPS observing with the UCLES slit, and CYCLOPS observing with the fibre bundle. saaps will try to work out whether you are using CYCLOPS of regular slit mode from the drama version you have started. If it gets this wrong, you can change the system being used from the UCLES_CYCLOPS menu in saaps.
-
✦Observing Run Codes - Please use run code 'w' from now on for regular AAPS observing, run code 'c' for CYCLOPS observing, run code 's' for sub-giant planet search observing (Rob Wittenmyers' program) and any other letter (except for 'u') for other programs.
-
✦Tracking Tool - The tracking tool 'Configure Runs to Track' option now sorts the runs by their run code (in reverse order) so 'w' runs appear the top and 'c' runs appear at the bottom, making it easier to select recent runs for each program
-
✦Target Catalogues - The loading of your own target catalogues now works, as does the use of that catalogue with the tracking tool.
-
✦Beware of Pattern Noise - The CCD Controllers developed a pattern noise problem during the Monster Run in 2009. This is intermittent, and causes excess noise to appear in each image - something that the Doppler analysis code picks up. So check for excess noise in the overscan region have been implemented in the usual post-processing - if the noise is within nominal limits, you'll get a green report on the post-processing window.If its excessive, the report is red, and a note appears in the observing log. When this happens you need to get technical help to (1) reset the controllers, or (2) have the cards from the controllers removed and jiggled - it seems to be some sort of annoying intermittent connection bug.
-
✦A bug appeared in which (on 5 times on one night) the EXPOSED keyword in the FITS files (which is supposed to give us the exposure time) was set to 0. I have implemented a check for this in the post-processing script, and if the EXPOSED keyword is different from UTEND-UTSTART time by more than a few seconds, then UTEND-UTSTART is used to give the exposure time instead. In any case, the exposure meter mid-time is still correct.
-
✦The EXPOSURE_METER continues to have a subtle bug we can't identify that causes the EXPOSURE METER to freeze during an exposure, and the saaps tool to then stop in its tracks after the exposure has read out. That exposure will be fine, but it will NOT have a mid-time correctly calculated in it. So you will need to shut everything down and start again. Changes to the underlying code seem to have reduced (but not eliminated) the incidence of this bug.
-
✦The GUIDER has been much more robust in its automatic acquisition in the last year or so - nonetheless, it is not perfect, so glancing at it when a new target is slewed to is always worthwhile!
At present it looks like this bug is due to a cumulative "memory leak" style problem, so that it just happens after a certain number of exposure meter exposures. It is being examined.

AT THE START OF A RUN
Pre-slit area hardware - at the beginning of an AAPS run, AAT technical staff will begining the set-up for all the 'standard' AAT equipment we use. However, you should check that the additional hardware we use in the pre-slit area of UCLES is all connected abd powered up. These are
-
1.Power up rotating pick-off mirror power supply and set to 1.6V. The rotating pick off is powered by a dark coloured variable power supply. It needs to be plugged in and set to deliver 1.6V to the rotating mirror, which sends 4% of the light exiting the slit o a CCD camera for monitoring by the exposure meter. (NB: Not needed while exposure meter is not operational).
-
2.Power up Exposure Meter CCD by connecting its plug-pack. The exposure meter uses an Apogee CCD camera to collect light picked off from the beam exiting the slit. It doesn't have a power switch, and so is powered up by connecting its supply. (NB: Not needed while exposure meter is not operational).
-
3.Connect up Iodine Cell temperature controller - make sure the temperature controller is plugged in. In general you'll want the cell to be cold when doing the set-up, so don't power it up just yet.
Start up UCLES : the SuperAAPS observing process
-
1. Connect to aatlxx (if not already connected) from the triple-headed Linux desktop (aatxdb) being used as an X-display and log in (username and passwords on the wall)
-
2. Start drama. Logging into aatlxx will automatically start drama. You may need to use a 'special' version (if so instructed by AAT staff or so noted on the white-board). For example as at August 2011, we are using ucles_cyclops_latest, so enter this command to start the new drama
drama -v ucles_cyclops_latest
otherwise, just enter
drama
The following is not necessary any more
(Then enter
setenv EM_SAVE_IMAGE 0
setenv EM_CAL_FILE "/instsoft/instusers/aatinst/saaps/spectral.cal"
to save time by not having the exposure meter write out every image it takes, and to get the right spectral calibration file.) -
3. The following is not necessary any more.
Up until recently it has been necessary to use a 'private' version of the exposure meter task, that fixed a variety of flaws in the drama-standard version. To make this happen use the following commands (easiest to cut and paste from here)
setenv EXPOSUREMETER_DIR /home/cgt/acmm/ExposureMeter-2-20
setenv EXPOSUREMETER_LIB /home/cgt/acmm/ExposureMeter-2-20
setenv EXPOSUREMETER_DEV /home/cgt/acmm/ExposureMeter-2-20
Hopefully the need to do this will have been removed by the next run. -
4.Start UCLES with an ucles1 or ucles2 command (depending which controller is in use - see the white board) and the following extra options which will ensure you can talk to the exposure meter and guider
> cd ~
> ucles2 guider em
If the exposuremeter is not operational for any reason you need to remove the "em"
> cd ~
> ucles2 guider
Similarly, if the GUIDER is not operational from the telescope console and you want to run without it (say during the day to do calibrations) use
> cd ~
> ucles2 em -
5.After entering the ucles1/2 command, the System Loader window will appear and all the tasks needed to run UCLES for SuperAAPS will commence, with the observing GUI, and Exposure Meter window and a Skycat window appearing last. Note that the cd ~ is important. If you try to start ucles from anywhere except the home directory, it will crash with a really unhelpful error message.
When the exposure meter first starts up after a power-up, it will need to cool-down to its operating temperature of -15C from room temperature. This can take up to half-an-hour.
It might be useful to know what the options to the ucles1 or ucles2 commands are -
•em - start the exposure meter task
-
•guider - talk to the guider task on the new AAT TCS
-
•ptcsSim - start a PTCS simulator. This option means you can do pretend observing with a pretend telescope
-
•To do observing or tests with a pretend guider, you need to start a special 'guider simulator' before you enter the ucles1/ucles2 commands above, as follows
> /instsoft/instusers/aatinst/guisim & -
6.Start a GAIA window for examining images as they are taken (it offers additional functionality for measuring seeing and SNR over the Skycat window) and a ptcs window so you can see where the telescope is.
> gaia &
> tel -
7. Start SuperAAPS
> cd saaps ; saaps &
This will start the SuperAAPS GUI. The first thing you'll see is a pop-up informing you that the "Guider will attempt to acquire objects from now on". Just Click OK, and the GUI will appear. -
8.If this is the second or subsequent night of observing, use the Commands->Reconfigure menu pull down in the System Loader to advance the first run number past the last run number from last night.
-
9. Then 'Initialise' a new night to start a new logsheet in saaps with 'Commands->Initialise new Night'. You will get a pop-up saying "Are you sure you want to fnalise and archive this log?" Make sure the name of the log-file is correct for the last nights observing and say yes. If you are unsure say no and check the files out in ~/saaps/final_logs/.
After you say 'Finalise' the old log will be changed to be read-only, so it can't be accidentally deleted in the future.
Make sure you then update the 'UT Date' entry correctly in the log header for the next night - you will not be able to write a log file until that entry is a legitimate one.

TCS Issues , Daytime Staff, and the End of the Night
It may be that AAT staff will want to do testing on the TCS during the day that will require killing and re-starting the TCS and/or guider. This will cause the UCLES ODC to stop taking data (eg. flats) because it needs to talk to a TCS task to fill in file headers etc. To stop this becoming a problem, I often shut down saaps, and start it back up in simulation mode, before I start the 40-60 wideflats we take at the end of the night.
-
✦Shut down saaps (File->Close), and then shut down the ODC (File->Exit - making sure to NEVER park the echelles - then when prompted cleanup 'Local Nodes' at the pop-up).
-
✦Restart ODC as above, but with the following commands to start a fake TCS and a fake guider
cd ~
/instsoft/instusers/aatinst/guisim &
ucles2 guider em ptcsSim
cd saaps
saaps &
You can then happily take flats regardless of what happens to the real TCS. Of course, the following afternoon (usually after dinner), you will need to shutdown saaps & ODC again, then restart ODC and saaps as per usual.
Start up UCLES : the SuperAAPS observing process
-
1. Shutdown SuperAAPS. Make sure there are no queue observations running, and use the "File->Exit" menu or Ctrl-Q in the SuperAAPS window.
-
2. Shutdown UCLES from the System Loader. You must shut-down UCLES from the "AAO CCD Loader" window using the "File->Exit" menu pull down. Shutting down from the observing GUI itself doesn't work.
You will be asked "Do you really want to do this?" - say yes.
You may then be asked "Do you want to park the echelles?" - say "NO". This is very important. If you accidentally say yes, you'll have to re-do the fine positioning of the AAPS set-up again. This pop-up is a recent addition, and we don't like it, and are trying to get rid of it. Until we do, "Just Say NO to Echelle Parking"
Then you'll be asked do you want to do a clean up. Select "Local Nodes" and do the cleanup.
Everything should then clean-up. -
3.Emergency Shutdown. If the CCD Loader window is unresponsive, or the clean-up won't work, you can use a cleanup command in the same terminal window you started ucles from. But this is not the preferred mode of shutdown.
-
4.Warning - After you've exited SuperAAPS, you'll be sitting in ~/saaps. If you try to restart UCLES from this directory, you'll get an error message like "Can't talk to aatvme15" which arises because you're starting UCLES not in the home directory. So do the cd ~ and try again.
Start up UCLES : the "old" observing process
-
For the record, here's how do to start up and shutdown when not using SuperAAPS.
-
1. Connect to aatlxx from the triple-headed Linux desktop (aatxdb) being used as an X-display and log in (username and passwords on the wall)
-
2. This will automatically log you into drama. If you have been told you need to need use a 'special' version (if so instructed by AAT staff or so noted on the white-board) then enter (eg.)
> drama -v ucles_cyclops_latest -
3. Start UCLES with an ucles1 or ucles 2 command (depending which controller is in use - see the white board)
> ucles2
after which the System Loader window will appear and all the tasks needed to run UCLES will commence, with the observing GUI and a Skycat window appearing last.
NB: If this is the second or subsequent night of observing, use the Commands->Reconfigure menu pull down in the System Loader to advance the first run number past the last run number from last night. -
4.Start a GAIA window for exmaing images as they are taken (it offers additional functionality for measuring seeing and SNR over the Skycat window)
> gaia & -
5.Start observing from the GUI
Shutdown UCLES : the "old" observing process
-
1. Shutdown UCLES from the System Loader. You must shut-down UCLES from the "AAO CCD Loader" window using the "File->Exit" menu pull down. Shutting down from the observing GUI itself doesn't work.
You will be asked "Do you really want to do this?" - say yes.
You may then be asked "Do you want to park the echelles?" - say "NO". This is very important. If you accidentally say yes, you'll have to re-do the fine positioning of the AAPS set-up again. This pop-up is a recent addition, and we don't like it, and are trying to get rid of it. Until we do, "Just Say NO to Echelle Parking"
Then you'll be asked do you want to do a clean up. Select "Local Nodes" and do the cleanup.
Everything should then clean-up. -
2.Emergency Shutdown. If the CCD Loader window is unresponsive, or the clean-up won't work, you can use a cleanup command in the same terminal window you started ucles from. But this is not the preferred mode of shutdown.






