| 1 | = MosBot = |
| 2 | |
| 3 | Mosbot is a python program that tries to adjust our observing scripts |
| 4 | to adapt to changing conditions through the night. |
| 5 | |
| 6 | Run it by logging in to the *mzls@mayall-idl* machine and then running: |
| 7 | {{{ |
| 8 | cd ~/obsbot |
| 9 | python mosbot.py <pass1.json> <pass2.json> <pass3.json> |
| 10 | }}} |
| 11 | you will need to keep that window open, because you want mosbot to keep running all night. |
| 12 | "pass[123].json" are the 'plan' or 'JSON' files that Arjun should have given you; |
| 13 | they contain lists of exposures we want to take depending on what the conditions are doing. |
| 14 | It is probably most convenient to run mosbot from a Terminal window on the mayall-2 display. |
| 15 | You don't need to read any of the output it produces, but you should check periodically |
| 16 | that it is still running; the code is under development and some bugs remain. |
| 17 | |
| 18 | |
| 19 | Mosbot does two things: |
| 20 | |
| 21 | 1. On startup, it reads the *pass[123].json* files, drops exposures |
| 22 | that should happen before the current time, for each exposure writes |
| 23 | two little shell scripts, and also writes a top-level script |
| 24 | */mosaic3/exec/mosbot/tonight.sh* |
| 25 | |
| 26 | 2. It then starts waiting for new images to appear in the $MOS3_DATA |
| 27 | directory. Whenever an image appears, it analyzes it and, based on |
| 28 | the measured conditions (seeing, sky brightness, transparency), it |
| 29 | decides which pass we should be running, and what our exposure times |
| 30 | should be, and it overwrites the next few scripts. |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |