tart_cal

TART Calibration Code

https://github.com/tmolteno/tart_cal

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.7%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

TART Calibration Code

Basic Info
  • Host: GitHub
  • Owner: tmolteno
  • License: gpl-3.0
  • Language: Python
  • Default Branch: main
  • Size: 247 KB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • Open Issues: 0
  • Releases: 1
Created over 3 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog License Citation

README.md

TART Telescope Calibration Software

Author: Tim Molteno

This docker file executes a process that uses known satellite positions to calibrate the telescope. The method of calibration is described in [1].

This instance requires a lot of processing power (approx 1 hour of CPU time on a single core high-end i7) and calibrates the TART telescope using a catalog of known L1-band objects (see objectpositionserver). These known objects are used as 'guide stars' to work out the gains and phases for each of the telescope antennas.

The process spends the first hour capturing 3 sets of observations at 25 minute intervals. After this, it uses these observations and the positions of the known radio sources at the time of observation. The entire process will take approximately two hours to complete (with only the second hour being very CPU intensive).

Raw Cal : New Calibration using GPS-based gains

There are two scripts tartcalibrate.sh, and rawcalibrate.sh. The latter is the new one which is now recommended.

This container is automatically built and placed in the github container registry [https://ghcr.io/tmolteno/tart_cal]

docker run --rm \
    -e TART_LOGIN_PW=replaceme \
    -e TART_API=https://tart.elec.ac.nz/signal/ \
    -e TARGET=signal \
    -e TART_NCAL=2 \
    -e TART_CAL_INT=20 \
    -v ~/calibration_results:/work \
    --name=cal ghcr.io/tmolteno/tart_cal /raw_calibrate.sh

Configuration

Configure environment variables in docker-compose.yml

Build and run

bash docker-compose build && docker-compose up -d

Follow progress

bash docker-compose logs --follow

bash docker-compose ps # status is calibration still running? docker-compose stop # stop calibration run?

Docker Usage

The easiest way to build this is to use docker. The continer is in the github container registry, so the following command will work (where "passwd" is the password to your telescope web api server):

sh run.sh rhodes passwd

This will calibrate the telescope at the API endpoint 'rhodes' with password 'passwd'

Stoping or Killing the instance

docker ps -a
docker stop cal
docker rm cal

Running this regularly

Add this command as a cron job. Modify the TARTLOGINPW and TART_API to refer to the URL of your TART telescope. Recommended interval is every two hours.

docker run --rm \
    -e TART_LOGIN_PW=<your password here> \
    -e TART_API=https://tart.elec.ac.nz/signal/ \
    -e TART_NCAL=3 \
    -e TART_CAL_INT=30 \
    -v ~/calibration_results:/work \
    --name=cal ghcr.io/tmolteno/tart_cal /tart_calibrate.sh

Debugging

This creates a running instance called 'cal'. You can check the logs using

docker attach cal

To exit type Ctrl-p Ctrl-q

To run a bash shell on the container. The logs are contained in the file /var/log/cron.log

docker exec -it cal bash

Then you can manually run a calibration using

sh /tart_calibrate.sh

The calibration normally takes 50 minutes to download data, and approximately 1.5 hours to run the optimization.

[1] Molteno et al. "Continuous Calibration of TART using GPS satellites". ENZCon2017.

Owner

  • Name: Tim Molteno
  • Login: tmolteno
  • Kind: user
  • Location: Dunedin, New Zealand
  • Company: University of Otago

Physicist & Radio Astronomy Newbie. Leader of the Transient Array Radio Telescope projet

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Molteno"
  given-names: "Timothy C.A."
  orcid: "https://orcid.org/0000-0002-2022-0380"
title: "TART Telescope Calibration Software"
version: 0.4.4
date-released: 2023-12-1
url: "https://github.com/tmolteno/tart_cal"

GitHub Events

Total
  • Watch event: 1
  • Push event: 64
  • Create event: 6
Last Year
  • Watch event: 1
  • Push event: 64
  • Create event: 6

Dependencies

docker-compose.yml docker
  • ghcr.io/tmolteno/tart_cal latest
.github/workflows/docker-publish.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v3 composite
  • docker/login-action v2 composite
  • docker/metadata-action v4 composite
  • docker/setup-buildx-action v2 composite
  • sigstore/cosign-installer d6a3abf1bdea83574e28d40543793018b6035605 composite
Dockerfile docker
  • debian bullseye build
raw-docker-compose.yml docker
  • ghcr.io/tmolteno/tart_cal latest