Changes between Version 25 and Version 26 of PublicPages/MayallZbandLegacy/NotesforObservers/MosBot
- Timestamp:
- Jan 30, 2017 1:51:41 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PublicPages/MayallZbandLegacy/NotesforObservers/MosBot
v25 v26 1 1 = Mosbot = 2 2 3 [[PageOutline]] 4 5 == Introduction == 3 6 Mosbot is a python program that tries to adjust our observing scripts 4 7 to adapt to changing conditions through the night. … … 19 22 the code is under development and some bugs remain. 20 23 21 = Mosbot Description =24 == Mosbot Description = = 22 25 23 26 Mosbot does two things: … … 41 44 42 45 43 = How to stop and restart=46 == How to stop and restart == 44 47 45 If you want to stop and restart observing ( eg, to take a focus48 If you want to stop and restart observing (''e.g.'', to take a focus 46 49 sequence), you need to stop both the `tonight.sh` script, and Mosbot: 47 50 48 51 * to stop `tonight.sh`: On the `mosaic3` computer where you are running the `tonight.sh` script: 49 {{{50 51 }}}52 The `tonight.sh` script checks for that `quit` file after each53 exposure, so it can take a while before it actually exits, but you54 won't lose any data this way. The `tonight.sh` script deletes that55 `quit` file just before it exits, so you don't need to worry about deleting it.52 {{{ 53 touch ~/exec/mosbot/quit 54 }}} 55 The `tonight.sh` script checks for that `quit` file after each 56 exposure, so it can take a while before it actually exits, but you 57 won't lose any data this way. The `tonight.sh` script deletes that 58 `quit` file just before it exits, so you don't need to worry about deleting it. 56 59 * to stop Mosbot, just ctrl-C it. 57 60 … … 61 64 * THEN run the new `tonight.sh` script 62 65 63 = During the night=66 == During the night == 64 67 65 '''To Restrict to Pass 2 and/or 3''' 68 === To Restrict to Pass 2 and/or 3 === 66 69 67 70 If, say, the weather has worsened and is highly variable, then you can force Mosbot to always choose a given 68 71 pass for upcoming exposures by creating files: 69 72 {{{ 70 73 touch ~/exec/mosbot/forcepass2 71 74 }}} 72 75 or 73 76 {{{ 74 77 touch ~/exec/mosbot/forcepass3 75 78 }}} 76 79 77 80 OR, if you want to forbid pass 1, but allow Mosbot to choose between pass 2 or 3, you can create the file: 78 81 {{{ 79 82 touch ~/exec/mosbot/nopass1 80 83 }}} 81 84 … … 88 91 89 92 90 = Mosbot command-line options (not usually needed)=93 == Mosbot command-line options (not usually needed) == 91 94 92 95 * --rawdata=RAWDATA Directory to monitor for new images; $MOS3_DATA by default … … 102 105 103 106 104 == Comments :==107 == Comments == 105 108 106 109 - Mosbot by default starts with PASS 2 observations. And by default, 107 110 we set all the exposure times to our minimum exposure time of 80 108 111 seconds. 109 110 112 - THEREFORE, if you kill mosbot after it has written out the 111 113 `tonight.sh` script and run the default `tonight.sh` script, you 112 114 will observe pass 2 with short exposures all night long. This is 113 115 almost certainly not what we want to happen!! 114 115 116 - You can change the default pass number with `--pass`, and the 116 117 default exposure time with `--exptime`. For example, if you are … … 120 121 disk. After that, Mosbot will be choosing the pass and exposure 121 122 time. 122 123 123 - **The `tonight.sh` script is not smart. If you kill and re-start 124 124 `tonight.sh`, you will start from the beginning of the night (or the … … 126 126 script, PLEASE re-run Mosbot to regenerate an appropriate 127 127 `tonight.sh` script.** 128 129 128 - The `tonight.sh` script writes to a file 130 129 `~/exec/mosbot/seqnum.txt` to indicate which exposure it is … … 132 131 out which upcoming exposures it should update. Mosbot by default 133 132 writes exposures 1 through 10 ahead of the current sequence number. 134 135 133 - Each exposure is split into two scripts. For example, exposure 3 136 134 happens in `expose-3.sh`, which takes the exposure, and then … … 138 136 exposure 3. 139 137 140 == About git :==138 == About git == 141 139 142 140 - the `~/obsbot` directory is a git checkout of the repository: 143 141 https://github.com/legacysurvey/obsbot 144 - There is a "MzLS Observer" github account set up to log in with an145 ssh key, so you should be able to *git commit* and *git push*any code142 - There is a "MzLS Observer" !GitHub account set up to log in with an 143 ssh key, so you should be able to `git commit` and `git push` any code 146 144 changes without having to know any passwords. 147 145 148 146 147 [[BackLinks]]