Changes between Version 16 and Version 17 of PublicPages/MayallZbandLegacy/NotesforObservers/MosBot
- Timestamp:
- Mar 14, 2016 8:43:40 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PublicPages/MayallZbandLegacy/NotesforObservers/MosBot
v16 v17 4 4 to adapt to changing conditions through the night. 5 5 6 Run it by logging in to the *mzls@mayall-idl*machine and then running:6 Run it by logging in to the `mzls@mayall-idl` machine and then running: 7 7 {{{ 8 8 cd ~/obsbot … … 21 21 = MosBot Options = 22 22 23 * --rawdata=RAWDATA Directory to monitor for new images 24 * --script=SCRIPTFN Write top-level shell script, default is /mosaic3/exec/mosbot/tonight.sh23 * --rawdata=RAWDATA Directory to monitor for new images; $MOS3_DATA by default 24 * --script=SCRIPTFN Write top-level shell script, default is ~/exec/mosbot/tonight.sh 25 25 * --no-write-script 26 26 * --ext=EXT Extension to read for computing observing conditions, default im4 27 27 * --tiles=TILES Observation status file, default obstatus/mosaic-tiles_obstatus.fits 28 28 * --pass=PASSNUM Set default pass number (1/2/3), default 2 29 * --exptime=EXPTIME Set default exposure time, default whateveris in the JSON files, usually 80 sec29 * --exptime=EXPTIME Set default exposure time, default is to use whatever exposure time is in the JSON files, usually 80 sec 30 30 * --no-cut-past Do not cut tiles that were supposed to be observed in the past 31 31 * -h, --help - show this list … … 37 37 - On startup, it reads the `pass[123].json` files, drops exposures 38 38 that are meant to be taken before the current time, for each exposure writes 39 two little shell scripts in `/mosaic3/exec/mosbot/`, and also writes a top-level script 40 `/mosaic3/exec/mosbot/tonight.sh` 39 two little shell scripts in `~/exec/mosbot/`, and also writes a top-level script 40 `~/exec/mosbot/tonight.sh`. 41 It will write default exposure scripts for the whole night. By default these will be pass 2, using the exposure 42 times given in the JSON files -- usually 80 seconds. You can change the default pass number with `--pass`, and 43 the default exposure time with `--exptime`. For example, if you are restarting in the middle of the night and 44 you know the conditions are pass 3, you might want to do this. These default exposures are what will run, at 45 least until the first image is taken and appears on disk. After that, MosBot will be choosing the pass and 46 exposure time. 41 47 42 48 - It then starts waiting for new images to appear in the $MOS3_DATA … … 44 50 the measured conditions (seeing, sky brightness, transparency), it 45 51 decides which pass we should be running, and what our exposure times 46 should be, and it overwrites the little shell scripts in ` /mosaic3/exec/mosbot/` to adjust the next few exposures.52 should be, and it overwrites the little shell scripts in `~/exec/mosbot/` to adjust the next few exposures. 47 53 48 54 '''To Stop observing with mosbot (./tonight.sh)'''[[BR]] … … 51 57 touch ~/exec/mosbot/quit 52 58 }}} 53 After each exposure, the `tonight.sh` script checks for the existence of the file ` /mosaic3/exec/mosbot/quit`. If that file exists,59 After each exposure, the `tonight.sh` script checks for the existence of the file `~/exec/mosbot/quit`. If that file exists, 54 60 the script will quit after a readout (without slewing). This should ensure that we don't lose any data, and is the way the `tonight.sh` script should be stopped. (It will delete the `quit` file just before it quits.) ''''This doesn't stop mosbot on mayall-idl''''. 55 61 … … 65 71 touch ~/exec/mosbot/forcepass1 66 72 67 Alternately, 68 touch ~/exec/mosbot/quit 69 cd ~/obsbot (on mayall-idl) 70 python mosbot.py --pass=PASSNUM pass1.json pass2.json pass3.json 71 }}} 72 After each exposure, the `tonight.sh` script checks for the existence of the files `/mosaic3/exec/mosbot/forcepass2`, etc. If any of 73 these files exist, the pass is forced in tonight.sh in priority order forcepass1, forcepass2, forcepass3. '''Delete these files if you don't want to force certain passes. They will not be deleted automatically when restarting mosbot or running `tonight.sh`.''' 73 OR, if you want to forbid pass 1, but allow MosBot to choose between pass 2 or 3, you can create the file: 74 touch ~/exec/mosbot/nopass1 75 76 77 After each exposure, the `tonight.sh` script checks for the existence 78 of the files `~/exec/mosbot/forcepass1`, `~/exec/mosbot/forcepass2`, `~/exec/mosbot/forcepass3`, in that order. 79 If one of these files exists, MosBot will choose that pass for the upcoming tiles. 80 '''Delete these files if you don't 81 want to force a certain pass. They will not be deleted automatically 82 when restarting mosbot or running `tonight.sh`.''' 74 83 75 84 == Comments:== 76 85 77 - mosbot by default starts with PASS 2 observations. And by default,86 - MosBot by default starts with PASS 2 observations. And by default, 78 87 we set all the exposure times to our minimum exposure time of 80 79 88 seconds. … … 88 97 script to generate a new `tonight.sh` script before you re-start observing. 89 98 90 - **The `tonight.sh` script is not smart. Each exposure is written to a 91 script, and the scripts are numbered. If you kill and re-start 99 - **The `tonight.sh` script is not smart. If you kill and re-start 92 100 `tonight.sh`, you will start from the beginning of the night (or the 93 101 last time mosbot was run). If you have to stop the `tonight.sh` … … 98 106 99 107 - The `tonight.sh` script writes to a file 100 ` /mosaic3/exec/mosbot/seqnum.txt` to indicate which exposure it is108 `~/exec/mosbot/seqnum.txt` to indicate which exposure it is 101 109 currently running. The `mosbot.py` script reads that file to figure 102 110 out which upcoming exposures it should update. Mosbot by default 103 writes 1, 2, and 3 exposuresahead of the current sequence number.111 writes exposures 1 through 10 ahead of the current sequence number. 104 112 105 113 - Each exposure is split into two scripts. For example, exposure 3