Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We currently support only one such automated function that allows slewing and/or dithering based on a pattern file.

Anchor
SlewDitherPattern
SlewDitherPattern
Slew-Dither Pattern

Introduction

This function is a generic implementation of a slew and/or dither pattern. The format of the input file will determine the command issued to the TCS. 

...

Warning

It is important to remember that the order of the data columns has to match exactly with the order of the meta data.

Operation

The initial action is to "Load Pattern File" which will present a dialog box for selecting the input file. The default extension is *.txt but the dialog box allows selection of other types even though they are dimmed. The "Execute" button will be enabled after the input has been processed and validated. The validation can cause either an error or a warning. The input file will not be loaded if the code detects an error such as wrong syntax for an input line. A warning on the other hand will generate a pop-up message informing the user that an issue may exist but it will still load the file after the dialog box has been dismissed. Example of a warning is a pattern file with filter=true and having the same filter position for every line.

...

Warning

It is absolutely essential that you do not attempt to interact with the filter wheel or otherwise change any of the exposure parameters using the LMI Camera Control view once the pattern has started. Very Bad Things May Result! Do NOT expect the filters shown on the LMI Camera Control view GUI to reflect what is going on with the instrument once the pattern is activated—instead, the Slew/Dither Pattern view will show what filters are in use.

Notes

Guiding may turn off when an offset command is received by the TCS. Guided offsets are supported but there are limitations that the user needs to be aware of. Please consult with the operator if you plan to use guided offsets.

...

There is no way to pause in the middle of a series so a pause command will take effect at the end of the series. One should also remember that we cannot resume at an arbitrary row. The code will resume at the point that it had paused.

Special Cases

Color Sequence

The function may be used without any slewing or dithering. For instance, it can be used for taking exposures at different filters on the same object while guiding. In this special case, the guide state will not change. Below is a sample pattern file for such a case:

No Format
#title=false ra=false dec=false exposureTime=true numExposures=true filter=true muRA=false muDec=false epoch=false dRA=false dDec=false rotatorPA=false rotatorFrame=false xi=false eta=false comment=true commandOption=false
#
   10.0  3  V  "3 exposures of 10sec at V"
   20.0  2  R  "2 exposures of 20sec at R"
   30.0  1  B  "1 exposure of 30sec at B"
Dithering

A common use of this function is to perform a dither pattern. Please remember that the TCS offset command is an absolute offset command in TPLANE mode and that the TCS will not automatically clear the offsets upon receiving a new science target. So you should consider using an offset of 0,0 as the last row with exposure time of 0 seconds to effectively clear the offsets in the TCS. Below is a sample pattern file for such a case. The title is set to false so the last science target name will be used and with numExposures set to false, the default value of 1 is used.

No Format
#title=false ra=false dec=false exposureTime=true numExposures=false filter=true muRA=false muDec=false epoch=false dRA=false dDec=false rotatorPA=false rotatorFrame=false xi=true eta=true comment=true commandOption=false
#
10.0 U      0.0  30.0 "first dither (0,30) - U"
10.0 B     30.0   0.0 "second dither (30,0) - B"
10.0 V      0.0 -30.0 "third dither (0,-30) - V"
10.0 R    -30.0   0.0 "fourth dither (-30,0) - R"
10.0 OPEN   0.0   0.0 "origin"
Slewing

Probably the most common use of this function is to perform a series of slews automatically. Most of the meta data parameters are relevant to this case where a science target XML packet has to be generated and sent to the TCS. The example below shows the a simple slew pattern including the title, RA/DEC, exposure time, number of exposures and the filter. Since all the exposure are with the V filter, this pattern file can be simplified by setting filter to false and therefore eliminating the column. The user has to make sure though that the filter is correctly set in the test image prior to the start of the pattern.

No Format
#title=true ra=true dec=true exposureTime=true numExposures=true filter=true muRA=false muDec=false epoch=false dRA=false dDec=false rotatorPA=false rotatorFrame=false xi=false eta=false comment=false commandOption=false
#
"Field5 " 00:15:00.00 +45:30:00.0   2 1 V
"Field6 " 00:26:00.00 +46:30:00.0  15 2 V
"Field7 " 00:37:00.00 +47:30:00.0   5 3 V
Slewing & Dithering

This is the latest enhancement to the function allowing the user to issue slews and dithers using the same input file. This is accomplished by the commandOption parameter. An example pattern file is shown below. When the command option is Slew, there should be valid values for ξ and η even though these values will be ignored. The reverse is also true so when the command option is Dither, RA and DEC have to be present and valid even though they will be ignored.

...