Changes between Initial Version and Version 1 of HetProcedures/RA/autotwi


Ignore:
Timestamp:
Feb 6, 2023 3:07:52 PM (16 months ago)
Author:
stevenj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HetProcedures/RA/autotwi

    v1 v1  
     1= autotwi.py: script to take automatic twilight sky spectra =
     2repository: svn+ssh://cetus.het.astronomy.utexas.edu/svn/astronomy/miscutils
     3
     4[[br]]
     5
     6Starting in early 2023, there is finally an automatic script to take twilight sky spectra. It has not been tested for HPF yet, but has been working for LRS2 and VIRUS twilights, both at evening and morning twilights.
     7
     8The simplest example usage is to run {{{autotwi.py}}} on the workstations, to take LRS2 and VIRUS evening twilights. Other options are described in the help from the script itself (below). You can stop the script at any time if you run {{{touch stop}}} in the directory where you ran it.
     9
     10[[br]]
     11
     12
     13{{{
     14[stevenj@zeus ~]$ autotwi.py -h
     15usage: autotwi.py [-h] [--debug] [-hpf] [-L] [-noL] [-V] [-noV] [-m] [-mL]
     16                  [-mV] [--llevel [--llevel]] [--llevelm [--llevelm]]
     17                  [--vlevel [--vlevel]] [--vlevelm [--vlevelm]] [-f]
     18
     19    Automatically take twilight sky spectra for all HET science instruments
     20
     21    Will set up, start, and stop the guiders;
     22    will report flux levels as the sky fades;
     23    will start all necessary scripts
     24
     25    Default assumption is evening twilights with:
     26      -NO HPF twilight
     27      -YES LRS2 twilights with "lsky" script when GC2:B@0.1s(raw) hits 36k
     28      -YES VIRUS twilights with "vsky" sript when GC2:B@0.1s(raw) hits 6.6k
     29
     30    Touch/create a file named "stop" in directory where you ran it to stop it.
     31   
     32    Examples:
     33          autotwi           (run with default values for evening twilights)
     34          autotwi --debug   (just setup probes and display values, don't run scripts)
     35          autotwi -hpf      (take HPF twilight 2min before sunset, in addition to L/V)
     36          autotwi -noL      (do not take LRS2 evening twilights)
     37          autotwi -hpf -noV (take HPF and LRS2 evening twilights only, no VIRUS)
     38          autotwi -m        (take L/V morning twilights)
     39          autotwi --llevel 39  (use 39k counts as threshold for LRS2 evening sky flats instead of default 36)         
     40          autotwi --llevelm 11  (use 11k counts as threshold for LRS2 morning sky flats instead of default 12)         
     41
     42         
     43   
     44
     45options:
     46  -h, --help            show this help message and exit
     47  --debug               Do not execute any science exposures, just monitor and
     48                        report
     49  -hpf                  Take HPF evening twilight
     50  -L                    Take LRS2 evening twilight
     51  -noL                  Do NOT take LRS2 evening twilight
     52  -V                    Take VIRUS evening twilight
     53  -noV                  Do NOT take VIRUS evening twilight
     54  -m                    Morning VIRUS/LRS2 twilights
     55  -mL                   Morning LRS2 twilight only (no VIRUS)
     56  -mV                   Morning VIRUS twilight only (no LRS2)
     57  --llevel [--llevel]   kilo-counts on GC2 to start LRS2 script in evening
     58  --llevelm [--llevelm]
     59                        kilo-counts on GC2 to start LRS2 script in MORNING
     60  --vlevel [--vlevel]   kilo-counts on GC2 to start VIRUS script in evening
     61  --vlevelm [--vlevelm]
     62                        kilo-counts on GC2 to start VIRUS script in MORNING
     63  -f                    force script to run, without sanity checks based on
     64                        sunset/sunrise times
     65}}}