Changes between Version 20 and Version 21 of PublicPages/MayallZbandLegacy/NotesforObservers/MosBot


Ignore:
Timestamp:
Mar 14, 2016 9:10:39 AM (9 years ago)
Author:
Dustin Lang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PublicPages/MayallZbandLegacy/NotesforObservers/MosBot

    v20 v21  
    2626  * reads the `pass{1,2,3}.json` files given on the command line
    2727  * discards exposures that are meant to be taken before the current time
    28   * writes an "overall" script for the night, `~/exec/mosbot/tonight.sh`
     28  * writes an "overall" script for the night, `~/exec/mosbot/tonight.sh`, which runs mini-scripts for each exposure
    2929  * writes "default" mini scripts for each exposure
    3030
     
    3737    * overwrites the mini scripts for these upcoming exposures
    3838
    39 = Mosbot Options =
     39
     40= How to stop and restart =
     41
     42If you want to stop and restart observing (eg, to take a focus sequence), you need to stop both the `tonight.sh` script, and Mosbot:
     43
     44* to stop `tonight.sh`: [[BR]]
     45On the mosaic3 computer where you are running the `tonight.sh` script:
     46{{{
     47   touch ~/exec/mosbot/quit
     48}}}
     49The `tonight.sh` script checks for that `quit` file after each exposure, so it can take a while before it actually exits,
     50but you won't lose any data this way.  The `tonight.sh` script deletes that `quit` file just before it exits.
     51
     52* to stop Mosbot, just ctrl-C it.
     53
     54To restart,
     55
     56* FIRST restart mosbot.  It will write out a new `tonight.sh`
     57* THEN run the new `tonight.sh` script
     58
     59
     60= During the night =
     61
     62'''To Restrict to Pass 2 and/or 3'''[[BR]]
     63
     64If, say, the weather has worsened and is highly variable, then you can force Mosbot to always choose a given
     65pass for upcoming exposures by creating files:
     66{{{
     67  touch ~/exec/mosbot/forcepass2
     68}}}
     69or
     70{{{
     71  touch ~/exec/mosbot/forcepass3
     72}}}
     73
     74OR, if you want to forbid pass 1, but allow Mosbot to choose between pass 2 or 3, you can create the file:
     75{{{
     76  touch ~/exec/mosbot/nopass1
     77}}}
     78
     79These files are NOT deleted by the `tonight.sh` script or by Mosbot, and will remain in effect until you delete them!
     80
     81Note that it is Mosbot that pays attention to these files (not `tonight.sh`); they affect what it chooses to schedule for upcoming exposures.
     82
     83
     84= Mosbot command-line options (not usually needed) =
    4085
    4186* --rawdata=RAWDATA Directory to monitor for new images; $MOS3_DATA by default
     
    5095
    5196
    52 '''To Stop observing with mosbot (./tonight.sh)'''[[BR]]
    53 On the mosaic3 computer where you are running the NOCS script:
    54 {{{
    55    touch ~/exec/mosbot/quit
    56 }}}
    57 After each exposure, the `tonight.sh` script checks for the existence of the file `~/exec/mosbot/quit`.  If that file exists,
    58 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''''.
    59 
    60 '''To Restrict to Pass 2 and/or 3'''[[BR]]
    61 
    62 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
    63 want to restrict the choice of passes because, say, the weather has worsened and is highly variable, '''without terminating the `tonight.sh` script''', then
    64 {{{
    65   touch ~/exec/mosbot/forcepass2
    66 or
    67   touch ~/exec/mosbot/forcepass3
    68 to return to pass1,
    69   touch ~/exec/mosbot/forcepass1
    70 
    71 OR, if you want to forbid pass 1, but allow Mosbot to choose between pass 2 or 3, you can create the file:
    72   touch ~/exec/mosbot/nopass1
    73 
    74 
    75 After each exposure, the `tonight.sh` script checks for the existence
    76 of the files `~/exec/mosbot/forcepass1`, `~/exec/mosbot/forcepass2`, `~/exec/mosbot/forcepass3`, in that order.
    77 If one of these files exists, Mosbot will choose that pass for the upcoming tiles.
    78 '''Delete these files if you don't
    79 want to force a certain pass. They will not be deleted automatically
    80 when restarting mosbot or running `tonight.sh`.'''
    8197
    8298== Comments:==
     
    86102  seconds.
    87103
    88 
    89104- THEREFORE, if you kill mosbot after it has written out the
    90   `tonight.sh` script, you will run pass 2 with short exposures all
     105  `tonight.sh` script and run the default `tonight.sh` script, you will observe pass 2 with short exposures all
    91106  night long.  This is almost certainly not what we want to happen!!
    92107
    93   It will write default exposure scripts for the whole night.  By default these will be pass 2, using the exposure
    94   times given in the JSON files -- usually 80 seconds.  You can change the default pass number with `--pass`, and
    95   the default exposure time with `--exptime`.  For example, if you are restarting in the middle of the night and
    96   you know the conditions are pass 3, you might want to do this.  These default exposures are what will run, at
    97   least until the first image is taken and appears on disk.  After that, Mosbot will be choosing the pass and
    98   exposure time.
     108- You can change the default pass number with `--pass`, and the default exposure time with `--exptime`. For example, if you are restarting in the middle of the night and you know the conditions are pass 3, you might want to do this.  These default exposures are what will run ONLY until the first image is taken and appears on disk.  After that, Mosbot will be choosing the pass and exposure time.
    99109
    100 
    101 
    102 - On the other hand, if you need to run a focus sequence, restart the
    103   MOSAIC control software, or otherwise stop observing, you can just
    104   ctrl-C the mosbot.py script.  HOWEVER, you should re-run the mosbot.py
    105   script to generate a new `tonight.sh` script before you re-start observing.
    106110
    107111- **The `tonight.sh` script is not smart.  If you kill and re-start
    108112  `tonight.sh`, you will start from the beginning of the night (or the
    109   last time mosbot was run).  If you have to stop the `tonight.sh`
    110   script, PLEASE re-run mosbot to regenerate an appropriate
     113  last time Mosbot was run).  If you have to stop the `tonight.sh`
     114  script, PLEASE re-run Mosbot to regenerate an appropriate
    111115  `tonight.sh` script.
    112116
    113    **Verify that the quit file has been removed before restarting `tonight
     117   **Verify that the `quit` file has been removed before restarting `tonight
    114118.sh`.**
    115119