Changes between Version 10 and Version 11 of PublicPages/MayallZbandLegacy/NotesforObservers/MosBot


Ignore:
Timestamp:
Feb 22, 2016 2:30:19 PM (9 years ago)
Author:
Arjun Dey
Comment:

--

Legend:

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

    v10 v11  
    2222
    2323* --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
    2625* --no-write-script 
    2726* --ext=EXT  Extension to read for computing observing conditions, default im4
     
    3534
    3635Mosbot does two things:
     36
    3737- On startup, it reads the `pass[123].json` files, drops exposures
    3838  that are meant to be taken before the current time, for each exposure writes
    3939  two little shell scripts in `/mosaic3/exec/mosbot/`, and also writes a top-level script
    4040  `/mosaic3/exec/mosbot/tonight.sh`
     41
    4142- It then starts waiting for new images to appear in the $MOS3_DATA
    4243  directory.  Whenever an image appears, it analyzes it and, based on
     
    4546  should be, and it overwrites the little shell scripts in `/mosaic3/exec/mosbot/` to adjust the next few exposures.
    4647
     48* '''To Stop mosbot'''
     49On the mosaic3 computer where you are running the NOCS script:
     50{{{
     51   touch ~/exec/mosbot/quit
     52}}}
    4753After each exposure, the `tonight.sh` script checks for the existence of the file `/mosaic3/exec/mosbot/quit`.  If that file exists,
    4854the 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.)
    4955
     56* '''To Restrict to Pass 2 and/or 3'''
     57If you have started mosbot in all three passes (i.e., using python mosbot.py pass1.json pass2.json pass3.json as above) and now
     58want 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}}}
     63After each exposure, the `tonight.sh` script checks for the existence of the files `/mosaic3/exec/mosbot/nopass1`, etc. If any of
     64these files exist, the pass is dropped from the tonight.sh.
    5065
    51 Comments:
     66===Comments:===
     67
    5268- mosbot by default starts with PASS 2 observations.  And by default,
    5369  we set all the exposure times to our minimum exposure time of 80
    5470  seconds.
     71
    5572- THEREFORE, if you kill mosbot after it has written out the
    5673  `tonight.sh` script, you will run pass 2 with short exposures all
    5774  night long.  This is almost certainly not what we want to happen!!
     75
    5876- On the other hand, if you need to run a focus sequence, restart the
    5977  MOSAIC control software, or otherwise stop observing, you can just
     
    7391  out which upcoming exposures it should update.  Mosbot by default
    7492  writes 1, 2, and 3 exposures ahead of the current sequence number.
     93
    7594- Each exposure is split into two scripts.  For example, exposure 3
    7695  happens in `expose-3.sh`, which takes the exposure, and then
     
    7897  exposure 3.
    7998
    80 About git:
     99===About git:===
    81100
    82101- the `~/obsbot` directory is a git checkout of the repository:
     
    87106
    88107
    89