Changes between Version 10 and Version 11 of PublicPages/MayallZbandLegacy/NotesforObservers/MosBot
- Timestamp:
- Feb 22, 2016 2:30:19 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PublicPages/MayallZbandLegacy/NotesforObservers/MosBot
v10 v11 22 22 23 23 * --rawdata=RAWDATA Directory to monitor for new images 24 * --script=SCRIPTFN Write top-level shell script, default is 25 /mosaic3/exec/mosbot/tonight.sh 24 * --script=SCRIPTFN Write top-level shell script, default is /mosaic3/exec/mosbot/tonight.sh 26 25 * --no-write-script 27 26 * --ext=EXT Extension to read for computing observing conditions, default im4 … … 35 34 36 35 Mosbot does two things: 36 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 39 two little shell scripts in `/mosaic3/exec/mosbot/`, and also writes a top-level script 40 40 `/mosaic3/exec/mosbot/tonight.sh` 41 41 42 - It then starts waiting for new images to appear in the $MOS3_DATA 42 43 directory. Whenever an image appears, it analyzes it and, based on … … 45 46 should be, and it overwrites the little shell scripts in `/mosaic3/exec/mosbot/` to adjust the next few exposures. 46 47 48 * '''To Stop mosbot''' 49 On the mosaic3 computer where you are running the NOCS script: 50 {{{ 51 touch ~/exec/mosbot/quit 52 }}} 47 53 After each exposure, the `tonight.sh` script checks for the existence of the file `/mosaic3/exec/mosbot/quit`. If that file exists, 48 54 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.) 49 55 56 * '''To Restrict to Pass 2 and/or 3''' 57 If you have started mosbot in all three passes (i.e., using python mosbot.py pass1.json pass2.json pass3.json as above) and now 58 want to restrict the choice of passes because, say, the weather has worsened, ''''without terminating the tonight.sh script'''', then 59 {{{ 60 touch ~/exec/mosbot/nopass1 61 touch ~/exec/mosbot/nopass2 62 }}} 63 After each exposure, the `tonight.sh` script checks for the existence of the files `/mosaic3/exec/mosbot/nopass1`, etc. If any of 64 these files exist, the pass is dropped from the tonight.sh. 50 65 51 Comments: 66 ===Comments:=== 67 52 68 - mosbot by default starts with PASS 2 observations. And by default, 53 69 we set all the exposure times to our minimum exposure time of 80 54 70 seconds. 71 55 72 - THEREFORE, if you kill mosbot after it has written out the 56 73 `tonight.sh` script, you will run pass 2 with short exposures all 57 74 night long. This is almost certainly not what we want to happen!! 75 58 76 - On the other hand, if you need to run a focus sequence, restart the 59 77 MOSAIC control software, or otherwise stop observing, you can just … … 73 91 out which upcoming exposures it should update. Mosbot by default 74 92 writes 1, 2, and 3 exposures ahead of the current sequence number. 93 75 94 - Each exposure is split into two scripts. For example, exposure 3 76 95 happens in `expose-3.sh`, which takes the exposure, and then … … 78 97 exposure 3. 79 98 80 About git: 99 ===About git:=== 81 100 82 101 - the `~/obsbot` directory is a git checkout of the repository: … … 87 106 88 107 89