Skip to content

Software

Telescope Control Unit - TCU

The telescopes and their cameras are controlled directly by small Windows computers (TCU), located inside the mounts of the telescopes. To verify if everything is working correctly on those computers, you can open DWservice web page, bookmarked on Firefox on aux computer. After logging in, select Shares Icon, and select TCU of your telescope: wk06-tcu, zb08-tcu, jk15-tcu. You can also log in to cameras on WK06 and JK15: wk06-ccd, jk15-ccd; the camera on ZB08 is controlled by zb08-tcu.

As the alternative, you can connect with rdesktop from aux computer. In a terminal type:

rdesktop -u asaroot -p - zb08-tcu.oca.lan
and then a password (available on site).

Either action will open a connection to a proper telescope's tcu.

If everything is open, you should see a desktop with four windows (Fig. 1):

aux01
Fig. 1. Remote desktop window with Windows system and 4 windows opened.

If you don't see some or any windows (and they are not minimized in the bar) click on the icons on the desktop to run programs, in this order:

  1. "ASA CC Active" also known as "ASA Alpaca Gateway"
  2. "Autoslew" (and wait until all the icons turn green)
  3. "ASAdome"
  4. "ASCOM Remote Server Console"

During normal operations there is no need to operate with this software, just check if it is working correctly. However, in case of a failure of higher level functions of the OCM software environment, you can use this software to control the telescopes.

  • "ASA Alpaca Gateway". It has 6 tabs that handle different features of the telescope (focuser, rotator, mirror covers, filter wheel, fans under the mirror, mirror collimation).
  • "Autoslew" controls the movement of the telescope. You can switch On/Off motors, move and park the telescope, switch on/off tracking, load pointing model, etc.
  • "ASAdome" controls the dome.
  • "ASCOM Remote Server Console" allows for communication with higher layers of the OCM software environment. You can check if everything is connected properly. When it is connected properly, the window should display this message (Fig. 2):

aux02
Fig. 2. "Remote server" started properly.

If it stars with an error, check the Troubleshooting section.

Warning

If you close the programs in Windows, the camera will immediately start to warm up. If you need to restart the programs, try to do it as quickly as you can, so the camera doesn't heat up too long and too much, and after the restart of the programs allocate additional time to cool down the camera.

TCU on WK06 and JK15

ZB08's TCU controls both the telescope and the camera. However, WK06 and JK15 have two separate TCUs: one responsible for the telescope, and the other - for the camera. To access them, choose from DWservice web page computers "wk06-tcu" and "wk06-ccd" for WK06's telescope and camera, respectively, or type in the terminal:

rdesktop -u asaroot -p - wk06-tcu.oca.lan
rdesktop -u asaroot -p - wk06-ccd.oca.lan

Similarly you can access JK15's telescope ("jk15-tcu") and camera ("jk15-ccd").

In order to control and move the telescopes, the same 4 programs as mentioned above have to work on computers with the "tcu" name. Additionally, in order to operate the cameras, the "ASCOM Remote Server Console" has to run on computers with the "ccd" name.

Telescope Operator Interface - TOI

The Telescope Operator Interface TOI) is a GUI application, that allows the observer to control telescopes, perform manual observations, generate and execute observing plans. To report bugs and problems about TOI, use GitHub's oca-problems here, label the problem "TOI" and assign "astromg"

TOI is the user-end of the intricate OCM software environment, that can be summarized in a simplified way:

tcu <- ASCOM alpaca -> tic <- NATS, 0mq -> toi

where tic is a middleware software (server), that coordinates communication with telescopes tcu's and execute complex higher-level operations. Yes, TOI is just a pretty face of an abyssal machinery that controls the telescopes.

To run TOI, in a terminal on nadir, zenith, or aux type:

cd ~/src/TOI
poetry run toi

It will open a set of windows (Fig. 3):

  1. Telescope Operator Interface - observatory window
  2. Mount Manual Control window
  3. Instrument Manual Control window
  4. Plan Manager window
  5. Aux Monitor window

TOI with all the windows
Fig. 3. TOI with all windows.

TOI gives you access to all telescopes visible in the observatory window. After selecting a desired telescope, other windows will update telemetry of the selected telescope. Switching telescopes during session is still buggy and is not recommended (9-08-2024). To operate a selected telescope, you have to take control. Without taking control, i.e. in the passive mode, you can see all telemetry and some telescope operations, but you can't perform any operations.

Telescope Operator Interface - observatory window

Telescope Operator Interface - observatory window
Fig. 4. Telescope Operator Interface (TOI) - observatory window

The observatory window (Fig. 4) has these components:

  1. Status of the tic server: green - connected, black - no connection, orange - temporary connection problems
  2. Basic ephemeris: date, universal time, Julian Date, sidereal time
  3. Table with basic statuses of all telescopes (not working). Here you have to select telescope to operate.
  4. Field with information who has control over selected telescope, and a push-button to take control over the selected telescope.
  5. Sky View map, which displays:

    • position of the telescope: open circle: green/red - tracking/idle
    • position of the dome: ring segment: green/red - open/closed
    • manual next position: cross
    • objects in the observing plan: stars (fader objects are scheduled later in the plan)
    • selected object: diamond,
    • positions of the Sun and the Moon (filled yellow and grey circle)
    • wind direction: arrow green/orange/red - speed under/between/over the limit
    • a gray ring is the area under the horizon
  6. Log message window with push-buttons:

    • Shutdown: parks telescope, closes mirror and dome, and sets up telescope to sleep
    • Weather Stop: closes mirror and dome, parks the telescope
    • Emergency Stop does not require taking control!

Note

If you close TOI when you had control and then open it again, it can happen that it will report you as the operator who has control - but that is old you, before you closed the application, and you don't have control. If you have control, the user@computer should be green.

Tip

To set up next telescope position click left mouse button on the Sky View map. To select object from observing plan - click right mouse button close to the object on the Sky View map.

Mount Manual Control window

Mount manual control window
Fig. 5. Mount Manual Control window.

Mount Manual Control window (Fig. 5) is divided into three sections: mount control, dome control, and peripheral systems (filter wheel, rotator, focus motors, etc.) control. Logic of all three sections is consistent.

  1. System connection indicator: green/red - connected/not connected. All indicators should be green (connected). If some system is not connected, check if RemoteServer is running on TCU, and if all systems were connected successfully.
  2. System status: e.g. mount is moving/tracking/guiding/idle/motors off
  3. Toggles (switches) of persistent systems/functions: e.g. motors, dome shutter (open/close), mirror covers, etc. Specific operations may require some systems off (e.g. dark and bias exposures - mirror covers and dome shutter should be closed). During normal scientific observations, all toggles on the right side of the window should be green (ON). Some systems should be turned ON during specific stage of operations - e.g. mirror fans and dome fans should be ON before the sunset, and should be switched OFF before first exposures. Their light indicators are orange when they are running correctly - this color is intended to keep the observer alerted to turn them off before observations.
  4. Telemetric values: current value of some telemetries e.g. current mount alt/az or ra/dec, or azimuth of the dome.
  5. Input editable fields - for manual input of desired values: e.g. next ra/dec, next alt/az, filter, focus, etc. Those fields usually have some verification if entered values are allowed. Input fields can be edited manually, but also can be completed automatically by other actions e.g. import object from plan, selecting from target field or mouse right-click on the Sky View map.
  6. Action push-buttons: to perform specific function, e.g. slew telescope to requested ra/dec or alt/az, set selected filter, etc. Pulse push-button (in the mount section) will open small window to perform micro-movements of the mount.
  7. Other functions: Target auto-complete field in the Mount section, allows to lookup and select objects by name if they are in the TOI database.
  8. dome lights, fans and ventilators
  9. Focus + focus adjust "Focus adjust" should be turned on by default and only turns itself off during the focusing procedure. This is the expected behavior but it is tsill being worked on. Report any bugs ith the "Report" button.

Note

Almost all operations done with switches (toggles and push-buttons) can be verified with proper status or telemetry value, except DOME LIGHTS and FLAT LIGHTS, because there is no "real" status verification. In this case, CCTV is the best verification.

Tip

The Target auto-complete field filters catalog objects based on name and description, so it's possible to filer some particular objects by typing ''focus'', ''flat'', ''standard''.

Instrument Manual Control window

Instrument Manual Control window
Fig. 6. Instrument Manual Control window.

Instrument Manual Control window (Fig. 6) follows a similar logic as the mount control window:

  1. System (instrument) connection indicator: green - good, red - no connection (rather not good).
  2. Status and progress bars indicating number of exposures finished (left), and elapsed exposure time (right).
  3. Current settings of the instrument.
  4. Input fields for exposure and instrument parameters. Object name, type, number of exposures and exposure time are required for exposure. Exposures can be executed either based on specified number of exposures and exposure time in proper fields, or a sequence. To learn how to specify a sequence, check Telescope Plan Generator or Observing plan syntax documentation.
  5. Push-buttons to set instrument parameters, and execute commands: Start just starts exposure, Snap starts exposure, but does not save it (for testing purpose).
  6. Pay attention to Cooler toggle, and the temperature indicator, as the cameras should always be cooled down to -60°C
  7. TEST toggle button: with this option ON the image will be saved and it will have in the header a keyword "test" set to 1. This means it will be ignored by the processing pipeline.

Plan Manager window

Plan manager window
Fig. 7. Plan Manager window.

The Plan Manager (Fig. 7) allows you to modify, execute, and create the observing plan. To learn more about creating the plan, go to Telescope Plan Generator.

1. Table of the current plan:

The plan is executed by meticulous script called planrunner. You can treat this window as the interface for planrunner. It will execute observing plan starting from the next marker, from top to bottom, one Observing Block (OB) at a time. The columns in the table display:

  1. Pictograms

    • next - blue arrow: plan execution will start here
    • done - green tic: object was successfully observed
    • skip - ⛔ object will be ignored, and next one will be executed by planrunner
    • wait - planrunner will wait specified wait condition (seconds, ut, or Sun altitude)
    • stop - planrunner will stop here
    • bell - when planrunner will reach this marker, the OCAM will play a sound.
    • warning - this icon is displayed if object altitude at predicted time of execution is below 35° (orange), or 0° (red) - in this case, object will be skipped.
    • circle with spikes - the OB is corrupted, most probably it's wrong syntax.B
  2. Object name

  3. Predicted time (UT) of execution (assuming start at the current time) and altitude over horizon at the time of execution
  4. Comments for particular objects.

Currently, the selected object is highlighted in blue. The fader blue highlights the previous selection (useful for swap option).

Tip

When you click on the column header, the display will change: Object will display full object specification, Alt@Ut will change to current altitude, and Comment will display sequence specification.

2. Push-buttons to modify the plan

  • Import to Manual will fill proper input fields in Mount and Instrument Manual Control windows, taking specification of the selected object in plan
  • Plot plan will display a plot at expected time of execution and altitude of objects in plan
  • Next button sets next marker (start of the plan) on the selected object
  • Skip button sets skip marker on the selected object
  • Stop and Bell push-buttons add proper marker below to the selected object
  • Up/Down moves the selected object one position up/down
  • First/Last moves the selected object to the top or bottom of the plan
  • Swap swaps currently selected object with previously selected (blue with faint blue)

Below the push-buttons there is a debug display, with planrunner messages.

3. Push-buttons to execute the plan

  • Load Plan loads a plan from a file. Usually, those plans are stored in ~/src/tpg/ directory
  • Start will start execution of the plan, starting from the next marker
  • Stop and Resume are self-explanatory

Aux Monitor window

Miscellaneous window
Fig. 8. Miscellaneous window.

This window (Fig. 8) has some separate tabs that give you access to additional info, and allow you to perform custom operations.

1. Welcome tab

Displays TOI application changelog and some basic telescope info. Also, it displays current meteorological conditions.

2. Flat tab

Displays info about latest flats: time, filter, exposure time and average ADU.

3. Focus tab

Allows to perform focus calibration (Fig. 9). The routine performs a series of exposures with different values of focus, and based on those exposures, calculates the maximum value of sharpness.

  • Central Value is the central value of the testing range
  • STEPS No. defines how many focus values will be tested
  • Step defines distance of the focus encoder between the steps
  • Method of finding the maximum sharpness:

    • RMS_QUAD: The sharpness is calculated as the rms of all pixels ADU on single exposure. Those values are modeled by fourth-degree polynomial. Focus is calculated as the maximum of the fitted function.
    • RMS_2: The sharpness is calculated as the rms of all pixels ADU on single exposure. Those values are modeled by second-degree polynomial. Focus is calculated as the maximum of the fitted function.
    • FWHM: the most classical way of determining the sharpness of a star in terms of its full width at half maximum light
    • laplacian: to be described
    • lorentzian: to be described

The result of the fit is displayed in the plot panel, with marked maximum sharpness value. If the calculated maximum sharpness value is reasonable, the telescope focus will be set to this value automatically.

Focus plots
Fig. 9. Four different focus plots showing 3 good fits and one bad.

Note

Above procedure is rather robust, however it requires some stars in the field. It will work best if in the field there are at least 15 stars of similar brightness, exposure time are 5-10s, a bright filter (Ic or i) is be used. Avoid fields with 1-2 very bright, saturated stars or fields with dense globular clusters. Don't saturate the stars in the focus image! If you do, the focus will not be fitted properly - the fit will look skewed and the value will be wrong. It's better underexpose than overexpose. The well-fitted focus is a parabola, symmetrical with respect to it's lowest point.

Tip

Many fields are good for focusing, eg. fields with standard stars or with your target. However, if for some reason they don't work, the optimal fields chosen specially for focus calibration are defined in the catalog, so you can find them with the Target input field in Mount Manual Control window, by typing focus".

Dome's FOLLOW button

The FOLLOW button should be OFF when TOI is executing the plan from Plan Manager; the dome will follow the telescope anyway. However, if you manually control the telescope (either from "Import to MANUAL" or directly in the "Mount Manual Control" window) the dome won't follow the telescope unless the FOLLOW button is ON. In such case you can either turn it ON temporarily or move the dome to a specific azimuth with MOVE button.

4. Guider tab

Guider is being tested, but it's not operational yet.

5. Fits tab

This window displays a miniature of an image array (fits) obtained with the instrument, with basic info. On the picture, red circles mark stars with saturated pixels.

FWHM

The information about FWHM X/Y tells you how stable is the weather (clouds?), if the telescope is focused, or if there's a problem with collimation (X and Y values are very different).

Telescope Plan Generator - TPG

Observing plan is now generated with TOI by push-button TPG in Plan Manager window. To learn more about the code visit TPG's GitHub here). To report bugs and problems, use GitHub's oca-problems here, label the problem "TOI" and assign "astromg"

TPG is located in ~/src/tpg directory, where all necessary files and generated plans are stored. Observing plans are prepared based on master files (e.g. zb08_master.txt) that contains all observable objects with necessary specifications. Objects are chosen based on priority, execution time, visibility slots, phase, time, and coverage masking.

Although discouraged right now, it is possible to create an observing plan for from outside TOI, by typing in terminal:

cd ~/src/tpg
poetry run tpg zb08 2023/08/1 >  ./Plans/zb08_230801.txt
Change the telescope name and date if necessary! The created plans are readable by TOI and GUI TEXT, but also can be understood by human and edited manually if necessary. The plans consist of Observing Blocks (OB). Each OB occupies one line and has instructions necessary to execute the exposure.
OBJECT eta_Car 10:45:03.5378 -59:41:04.0516 seq=2/g/5,3/r/10 comment="optional comment"
The seq parameter encapsulates the sequence for CCD exposures in the form:

  • seq=1/Ic/30,2/V/45 - (N/filter/exp_time) - one exposure in Ic filter for 30s, 2 exposures in V filter for 45s
  • seq=10x(1/Ic/30,2/V/45) - sequence will be repeated 10 times

Additional OB's feature is a parameter read_mod that determines the readout mode. But you use one default readout mode for every telescope, so this parameter shouldn't be used.

Additionally, the plan can include special commands that automatize the execution of observations even further: STOP, WAIT, or BELL. To learn more, check TPG's README on GitHub.

Note

  • no white spaces in name ra dec seq
  • if there is no object to observe, it will allocate: WAIT ut=12:45:34 with the ut for the next object
  • comment has to be enclosed with " " characters
  • don't use TABS, only SPACES
  • TPG is case sensitive

Follow OBSERVING INSTRUCTIONS document for the latest instructions, and to know if any special plan should be used.

Additional feature of TPG are macros, which are groups of OBs that are executed one after another. When planning the observations, TPG creates a plan taking into account macros when available or single targets otherwise. Macros are stored in the TPG directory, in the subdirectory makro. The text in each macro file is a plain observing command, that starts with OBJECT, followed by RA and Dec, followed by a sequence of n/filter/texp. No more information is needed in a macro, because aby other important limitations on observations are stored in the master files in the same line as the "macro target". Macro target needs additional parameter, ob_time which gives an estimated time needed to finish this macro (exposures + overheads), and must be provided by the observer/plan manager, because this time is not read automatically from a macro file.

TPG is now a button of TOI. Click on it and a window will open where you specify the limitations of the plan you want to create: wind, seeing, etc. By default the option "Don't repeat observed objects" is turned ON. This has an impact on your plan only if TPG is used more than 1 time in a given night. This option means that targets that are supposed to be observed only once per night (this is specified in the master observing file of each telescope), if they already have been observed before the second use of TPG during the night, will be ignored for observations. This is possible because TPG stores the information about executed targets for a given night and refers to this list when scheduling observations for the 2nd time in the night. Any target on that list will be ignored if it is specified for this target to be observed once per night.

TeDa

TeDa has the majority of ds9 necessary features and is still being developed. In order to open TeDa, type in the terminal TeDa -i (-i ignores the custom settings file, i.e. you start TeDa with default settings). If TeDa doesn't see the new directory for a current night, restart TeDa. Report bugs and suggestions to mkalusz.

OCABOX-CLI: oca Command Line Interface for TIC

oca program consists of layers (like iraf or like an onion) and choosing an option moves you to a deeper layer with more sub-options to choose from. You can always ask about available options and their meaning by typing --help at the end of each layer.

oca

Runs the Telescope and Instruments Controller. Type oca <telescope> --help for available commands

Usage:

$ oca [OPTIONS] TELESCOPE COMMAND ...

Options:

  • -v, --verbose: Increase verbosity, overrides settings.logging.level (e.g. -v or -vv)
  • --version: Show version and exit
  • --settings FILE: Load settings from FILE
  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

oca [telescope] dome

Usage:

$ oca [telescope] dome [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • az: Shows current azimuth of the dome
  • close: Close dome shutter
  • connect: Connect or disconnect the dome
  • connected: Shows if the dome is connected
  • open: Open dome shutter
  • shutter: Shows dome shutter status
  • slew: Rotate the dome to specified azimuth
  • slewing: Shows if the dome is moving
  • status: Shows all information about the dome
  • stop: Stops current dome movement

oca [telescope] dome az

Shows current azimuth of the dome

Usage:

$ oca [telescope] dome az [OPTIONS]

Options:

  • --sexagesimal / --decimal: [HA/DEG]:MIN.SEC or decimal degree [env var: SEXAGESIMAL; default: sexagesimal]
  • --monitor / --no-monitor: Do not exit and continue monitoring values [default: no-monitor]
  • --help: Show this message and exit.

oca [telescope] dome close

Closes dome shutter

Usage:

$ oca [telescope] dome close [OPTIONS]

Options:

  • --wait / --no-wait: Wait for completion of the command [default: wait]
  • --take-control [yes|no|ask]: Take over the control of the telescope if another user has it [default: YesNoAsk.ask]
  • --help: Show this message and exit.

oca [telescope] dome connect

Connects or disconnect the dome

Usage:

$ oca [telescope] dome connect [OPTIONS] [CONNECT]

Arguments:

  • [CONNECT]: [default: True]

Options:

  • --wait / --no-wait: Wait for completion of the command [default: wait]
  • --take-control [yes|no|ask]: Take over the control of the telescope if another user has it [default: YesNoAsk.ask]
  • --help: Show this message and exit.

oca [telescope] dome connected

Shows if the dome is connected

Usage:

$ oca [telescope] dome connected [OPTIONS]

Options:

  • --monitor / --no-monitor: Do not exit and continue monitoring values [default: no-monitor]
  • --help: Show this message and exit.

oca [telescope] dome open

Opens dome shutter

Usage:

$ oca [telescope] dome open [OPTIONS]

Options:

  • --wait / --no-wait: Wait for completion of the command [default: wait]
  • --take-control [yes|no|ask]: Take over the control of the telescope if another user has it [default: YesNoAsk.ask]
  • --help: Show this message and exit.

oca [telescope] dome shutter

Shows dome shutter status

Usage:

$ oca [telescope] dome shutter [OPTIONS]

Options:

  • --monitor / --no-monitor: Do not exit and continue monitoring values [default: no-monitor]
  • --help: Show this message and exit.

oca [telescope] dome slew

Rotates the dome to a specified azimuth

Usage:

$ oca [telescope] dome slew [OPTIONS] AZ

Arguments:

  • AZ: Azimuth (DEG:MM:SS or decimal deg)

Options:

  • --wait / --no-wait: Wait for completion of the command [default: wait]
  • --take-control [yes|no|ask]: Take over the control of the telescope if another user has it [default: YesNoAsk.ask]
  • --help: Show this message and exit.

oca [telescope] dome slewing

Shows if the dome is moving

Usage:

$ oca [telescope] dome slewing [OPTIONS]

Options:

  • --monitor / --no-monitor: Do not exit and continue monitoring values [default: no-monitor]
  • --help: Show this message and exit.

oca [telescope] dome status

Shows all information about the dome

Usage:

$ oca [telescope] dome status [OPTIONS]

Options:

  • --sexagesimal / --decimal: [HA/DEG]:MIN.SEC or decimal degree [env var: SEXAGESIMAL; default: sexagesimal]
  • --monitor / --no-monitor: Do not exit and continue monitoring values [default: no-monitor]
  • --help: Show this message and exit.

oca [telescope] dome stop

Stops current dome movement

Usage:

$ oca [telescope] dome stop [OPTIONS]

Options:

  • --wait / --no-wait: Wait for completion of the command [default: wait]
  • --take-control [yes|no|ask]: Take over the control of the telescope if another user has it [default: YesNoAsk.ask]
  • --help: Show this message and exit.

oca [telescope] camera

Below are some examples of a command oca zb08 camera

  • oca zb08 camera temperature

    checks and displays the temperature of the camera

  • oca zb08 camera settemperature -60

    sets camera temperature to -60°C

  • oca zb08 camera expose --light --readoutmode 1 10 a.fits

    takes a 10s exposure in the readout mode #1 and saves it to "a.fits" in the ~/Desktop/fits_zb08/ directory

  • oca zb08 camera setconfig --gain 1

    in the subroutine that sets the configuration of the camera, this command sets the gain parameter to #1 (~2e-/ADU)1

GUI TEXT

GUI TEXT is a semi-graphical interface set in the terminal window, alternative to TOI.

oca [telescope] gui text

As a result, a graphical interface GUI TEXT (Fig. 11) will appear in the terminal:

Graphical user interface in the terminal
Fig. 11. GUI TEXT - Graphical user interface in the terminal.

GUI TEXT window allows you to monitor and control behavior of the telescope:

  • coordinates the telescope is pointing to,
  • status of the tracking (ON/OFF),
  • the dome shutter (OPEN/CLOSE),
  • the mirror covers (OPEN/CLOSE),
  • details of the camera settings (filter, gain and read out modes).

In the future, GUI TEXT should have the same functionality as TOI. GUI TEXT can also be run remotely via ssh.

To start observation program quickly:

  1. Look for a file on desktop [telescope]_observation_plan.txt, open it and paste new observing program (please see observing plan syntax for proper plan construction). If the file does not exist, create one e.g. wk06_observation_plan.txt.

  2. In GUI TEXT push the Control button to take control. In the upper-right corner of GUI TEXT the information is displayed of who is controlling the telescope and for how long will they will be in control.

  3. Push the Load Plan button. If the plan syntax is correct, then observing plan will show up in the center bottom window. If the program is already loaded, this is an old program, i.e. a program loaded the last time when observations were made with this telescope. Load a new program.

  4. If some telescope adjustment is needed, please take a look at the footer bar, where you can click with mouse or type keyboard keys to handle telescope manually. To change any values you need control.

  5. To run loaded program push Start button. If you want to start from specific command, just click with the left mouse button on plan window. Two fields below the Control button show the id of the selected command.

  6. To stop the program, push Stop button.

Full documentation is available on GitHub for the members of the Araucaria Project (if you would like to have access, ask Mikołaj) or ocacontrolroom.

Pro tip: Show plan in verbose mode

Then you click on the checkbox named verbose below the Editor the plan will show in the verbose mode, showing sub-steps of each observation. Next click back to normal display mode.

Note

The program will execute only sequences saved in [telescope]_observation_plan.txt on Desktop. The content of [telescope]_observation_plan.txt is expected to change every night as you progress with observations. In order to change it, simply open it in your favorite text editor and change the file according to your observing plans. Save the file.

TIC: Telescopes and Instruments Controller

TIC is the middleware connecting to all telescopes subsystems and providing common interface for them in the form of Python class ClientAPI. TIC is based on ocabox package written by the AkondLab.

The ocabox repository is on the Araucaria Project GitHub.

TIC Server

The TIC software run continuously on the VM tic.oca.lan. It is started automatically at boot time as systemd service tic.

Check status and console messages

One has to log in to the VM tic.oca.lan:

$ ssh poweruser@tic.oca.lan

Then the status can be checked by:

$ sudo systemctl status tic

and console messages can be checked by:

$ sudo journalctl -u tic

or to follow console messages in real time:

$ sudo journalctl -u tic -f

Update TIC

To update TIC one have to log in to the VM tic.oca.lan and follow those steps:

$ ssh poweruser@tic.oca.lan
$ $ cd src/ocabox/
$ git pull
$ sudo systemctl stop tic
$ poetry update
$ poetry install
$ sudo systemctl start tic
$ sudo systemctl status tic

HALina

The Halina project is a heuristic algorithmic library designed for managing and processing astronomical observation data. It includes components for simulating data, collecting telescope observations, and sending email reports with the processed data.

Halina Server in OCM

The Halina server is running on the halina.oca.lan VM on nawia-kvm (if not moved).

It is started automatically at boot time as a systemd service halina.

Github project

The Halina project repository is on the Araucaria Project GitHub.

NATS

The NATS server is used as a message broker in the observatory. It is used to send various kinds of messages between different parts of the observatory. All the NATS communication is done using severish project Messenger class.

Checking existing streams, subjects and their content

Most of the NATS subjects belongs to NATS JetStream streams, which means the information is buffered in the disk.

The easiest way to display existing streams and their subjects is to install and use the nats command line tool.

The nats is already installed for poweruser on the nats.oca.lan VM, you can ssh there and use it.

Example of usage:

poweruser@nets:~$ nats -s nats.oca.lan stream ls
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                    Streams                                                                                                     │
├───────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬─────────────────────┬──────────┬─────────┬──────────────┤
│ Name          │ Description                                                                                                                          │ Created             │ Messages │ Size    │ Last Message │
├───────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────┼──────────┼─────────┼──────────────┤
│ tic_progress  │ For progress tracking of long operations. Last message in subject is the current progress. use by specialized MsgProgessXXX classes. │ 2024-04-04 02:16:35 │ 0        │ 0 B     │ never        │
│ test          │                                                                                                                                      │ 2024-04-04 02:16:35 │ 61       │ 2.3 KiB │ 5.32s        │
│ tic_config    │ For observatory config (and maybe similar configs). Last message in subject is the current config.                                   │ 2024-04-04 02:16:35 │ 9        │ 144 KiB │ 1d6h18m48s   │
│ telemetry     │                                                                                                                                      │ 2024-04-04 02:16:35 │ 22,060   │ 12 MiB  │ 5.30s        │
│ tic_telemetry │ TIC telemetry - for any useful diagnostic data, and for (mostly numerical) values which may be presented in UI                       │ 2024-04-04 02:16:35 │ 131,436  │ 44 MiB  │ 5d22h46m2s   │
│ tic_journal   │ For components and operations textual logs which should be presented to the operator.                                                │ 2024-04-04 02:16:35 │ 677,065  │ 267 MiB │ 0.22s        │
│ tic_status    │ For components and operations statuses. Mostly enum strings, may be used in application logic, and UI                                │ 2024-04-04 02:16:35 │ 15,678   │ 500 MiB │ 1.53s        │
╰───────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────────┴──────────┴─────────┴──────────────╯

poweruser@nets:~$ nats -s nats.oca.lan stream subjects tic_telemetry
  tic.telemetry.wk06.camera.setccdtemperature: 15
              tic.telemetry.jk15.dome.azimuth: 15
            tic.telemetry.jk15.mount.altitude: 15
     tic.telemetry.jk15.camera.ccdtemperature: 15
  tic.telemetry.jk15.camera.setccdtemperature: 15
         tic.telemetry.jk15.mount.declination: 15
             tic.telemetry.jk15.mount.azimuth: 15
  tic.telemetry.zb08.camera.setccdtemperature: 17
          tic.telemetry.wk06.focuser.position: 108
          tic.telemetry.zb08.focuser.position: 111
         tic.telemetry.wk06.mount.declination: 272
              tic.telemetry.wk06.dome.azimuth: 289
          tic.telemetry.jk15.focuser.position: 384
         tic.telemetry.zb08.mount.declination: 1,499
              tic.telemetry.zb08.dome.azimuth: 1,549
     tic.telemetry.zb08.camera.ccdtemperature: 1,682
     tic.telemetry.wk06.camera.ccdtemperature: 3,932
            tic.telemetry.zb08.mount.altitude: 7,230
      tic.telemetry.wk06.mount.rightascension: 8,655
             tic.telemetry.zb08.mount.azimuth: 9,221
            tic.telemetry.wk06.mount.altitude: 10,419
      tic.telemetry.zb08.mount.rightascension: 14,405
      tic.telemetry.jk15.mount.rightascension: 22,355
             tic.telemetry.wk06.mount.azimuth: 49,203

OCA Fits Processor - OFP / OFITS

OCA Fits Processor is astronomical data processing software. This package is written by CAMK software team. The software consists of two components:

  • OFP - a suite of automated data processing services.
  • OFITS - a user interface in terminal to process data by a user.

The oca-fits-proc repository is on the Araucaria Project GitHub.

OFP is a service, operating on ofp virtual machine, and provides online fits reduction, build a light curves, downloads fits, does the guiding, and much more. This service works automatically without the involvement of the observer. There are two possible visualisations prepared for every telescope: fits preview and light curve preview.

Fits preview

OFP fits preview
Fig.10. OFP fits preview.

The fits preview (Fig. 10) shows current exposure (on the left) and fits header data (on the right).

Cyan circle represents telescope pointing and additionally on right there is "Pointing error" data, like ra error, dec error and 2D distance error. Red circles show objects assigned to this field found in this exposure. Additionally, the maximum saturation is shown on the right for each found object.

Fits preview is extremely helpful for the observer to verify the appropriate exposure time in real time. If an object is not highlighted, it is probably not in the OFP database. To add it, please contact the software group: MMM (Marek, Mirek, Mikołaj).

Note

Telescope pointing and objects (cyan and red circles) are only visible after the OFP "solves the field", i.e. calculates the exact RA, Dec of the observed field. However, in dense fields this might take exceptionally long, and a new exposure will overwrite the previous one. As a consequence, for such a field, the information about telescope pointing and objects won't be displayed.

Light curve preview

OFP light curve preview
Fig. 11. OFP light curve preview.

This preview shows light curve of the currently exposed object (Fig. 11). If no period is specified for the object, it will be displayed on a timescale. Red dot represent the last observation, yellow dots represent a few last observations. Since the light curve calculation process takes some time, the visualization of the light curve may be slightly delayed.

How to run it?

The presented visualizations are saved as png files in one place. Each subsequent visualization overwrites the previous one. Symlinks to these files are placed on Desktops of zenith, nadir, and aux. For fits preview, look for [telescope]_display_info.png and for light curve preview - [telescope]_diff_light_curve_chart.png.

To display these files use Geeqie program, witch can be run from Ubuntu side bar. This program is a simple image viewer with an option to refresh the display when the source changes. To open multi-window visualizations:

  1. Double-click on Geeqie shortcut, one window will open.
  2. To open another widows press ctrl + N.
  3. On left menu select Desktop and all visualization files will appear. Select the one you want.
  4. To hide side menu press ctrl + H.

USEFUL TERMINAL COMMANDS

fitslist

Open another terminal, go to some directory with fits and type:

fitslist
Command will show some info about all fits files in this directory. Information is taken form fits headers.

fitsheader

Open another terminal, go to some directory with fits and type:

fitsheader /path/to/file/fits_file.fits
This command will display fits header in terminal.

fitsgrep

In a terminal type:

fitsgrep <KEYWORD> fits_file_name(s)

This command prints out the name of the input file followed by the FITS header card with a given . If the header does not contain any card with a given keyword, then only the file name is printed. If there are be more then one header card with a given keyword, the all of them will be printed, one per line.

The program is capable to process multiple files when wildcards ('*','?') are given in the file name argument or multiple file names are provided.

Multiple Extension Fits (MEF) files, which have Multi Header Data Units (HDU) FITS files are processed as well.

contact: Wojtek Pych (pych@camk.edu.pl)

imstat

In the terminal type:

imstat fits_file_name(s)

This command prints out the name of the input file followed by basic statistics of the image:

  • minimum value with the pixel X,Y coordinates and maximum value with the pixel X,Y coordinates
  • mean value with standard deviation
  • median
  • mode

Mode comes in two versions:

  • value obtained as the maximum of the polynomial fit to the histogram peak
  • position of the histogram maximum (from the definition)

The input file has to be in FITS format. The image is taken from the primary Header Data Unit (HDU).

The program is capable to process multiple files when wildcards ('*','?') are given in the file name argument or multiple file names are provided.

contact: Wojtek Pych (pych@camk.edu.pl)

fwhm

In the terminal type:

fwhm /home/observer/src/PARS/fwhm.par fits_file_name

or better

cp -va /home/observer/src/PARS/fwhm.par fwhm.par
fwhm fwhm.par fits_file_name
so the user can edit the local copy of the parameters file by himself/herself.

This command prints out following information about the input image:

  • file_name
  • background level
  • standard deviation of the background counts
  • number of stars taken for the calculation
  • mean Full Width at the Half Maximum (FWHM) of the Point Spread Function (PSF).

Be careful with the undersampled images (FWHM < 2 pix).

This program belongs to the OCAphot photometric package. More information may be found the documentation of this package.

contact: Wojtek Pych (pych@camk.edu.pl)

LIST OF SERVICES

The table below lists the services running at the observatory. Its purpose is to allow users to manual restart the services if needed. To do so, access the specified IP address via ssh as poweruser and follow the instructions in the "how to restart" column.

Service name network name IP How to restart Symptoms if it doesn't work Notes
ofp pipeline ofp 39 sudo systemctl restart ofp_zb08_pipe Live light curve display not working, no image statistics in TOI for telescopes: jk15, zb08, wk06
ofp download ofp 39 sudo systemctl restart ofp_wk06_downl Downloading images from the instrument doesn't work for telescopes: jk15, zb08, wk06
weather overvatch services01 45 sudo systemctl restart oca_weather_overwatch No weather warnings in OCA Monitor
sky flats overvatch services01 45 sudo systemctl restart oca_flat_overwatch Sky flats overview table not working in TOI
halina halina 44 sudo systemctl restart halina The night report is not sent by email
pms nats 38 sudo systemctl restart pms_tic pms_rest pms_modbus The state of: telescopes and/or batteries and/or lights and env sensors does not refresh Usually restart only single service
tic tic 37 sudo systemctl restart tic TIC server is not working (according to status in GUI's)
model-stars-presence hal 57 docker ps -> get "CONTAINER ID" and then run: docker restart "CONTAINER ID" No image quality segmentation (green/red image belts are missing)
nats nats 38 don't If really needed to restart, nats works on docker
nats-explorer nats 38 sudo systemctl restart nats-explorer NATS subject/message web explorer not available Web UI for inspecting NATS traffic
nats streams auto-update nats, ofp 38,39 sudo systemctl restart oca_nats_config_update.timer NATS stream configuration not refreshing after repo push systemd timer, runs every 5 min, pulls oca_nats_config repo
mqtt broker docker 36 sudo systemctl restart mqtt MQTT-based sensors stop delivering data Mosquitto MQTT broker
ASCOM Alpaca simulators docker 36 sudo systemctl restart ASCOM.Alpaca.Simulators Simulated telescope (sim) not responding Used for testing without real telescopes
oca-manual (this document) docker 36 sudo systemctl restart oca.manual docs.oca.lan / mkdocs site not available Auto-pull timer: oca.manual.autopull.timer (hourly)
oca homepage docker 36 sudo systemctl restart oca.homepage.joomla OCA Joomla homepage not accessible
opensearch docker 36 sudo systemctl restart opensearch Search/logs aggregation not working
prometheus (+ Loki + Grafana) docker 36 sudo systemctl restart prometheus Dashboards/metrics/logs aggregation not available dashboard.oca.lan:3000; node-exporter runs on every VM
davis_weather allsky 171 observer@allsky -> sudo systemctl restart davis_weather The weather readings does not update This is on RPi, user observer, repo oca-data-to-nats

CAMK infrastructure (Warsaw, not at OCM)

Service name network name IP How to restart Symptoms if it doesn't work Notes
nats-camk nats-camk 192.168.21.173 sudo systemctl restart nats-server CAMK NATS server unavailable (separate from OCM NATS) Native nats-server binary (not Docker). VM host: apus. Config repo: camk_nats_config
nats streams auto-update nats-camk 192.168.21.173 sudo systemctl restart oca_nats_config_update.timer CAMK NATS streams not refreshing after repo push Pulls camk_nats_config every 5 min

  1. Gain parameter has 3 values: #0 is about 4e-/ADU, #1 ~2e-/ADU, #2 ~1e-/ADU ↩