Skip to main content

ALMA QSO analysis

Project description

Static Badge

almaqso

This repository is a folk of astroysmr/almaqso, which is no longer maintained. So many bugs are still there, and I am trying to fix them.

PLEASE REFER TO THE ISSUE SECTION SINCE IT CONTAINS THE BUGS AND INFORMATION.

Pre-requisites

CASA

  • Please use CASA with ALMA pipeline. I am using CASA version 6.6.1-17-pipeline-2024.1.0.8.

CASA Modules

  • analysisUtilities
  • UVMultiFit: (optional) When you run analysis with mode='aftercal' or mode='all' (this means that you run Step 5), this is needed. If you use CASA 6, you should switch the branch to develop to build properly.

Details (e.g., how to install and modify) are described in Pre-requisites.

Installation

You can install this package by

pip install git+https://github.com/skrbcr/almaqso.git

Then you can use the package like this:

import almaqso

Usage

See sample folder and documentation.

Test

CASA to use

First, make sure that you have CASA with alma pipeline installed e.g., the version that I am using. To set environment variables shown below, you can tell this program which CASA to use:

bash and zsh

Write above line in your .bashrc or .zshrc.

export ALMAQSO_CASA=/path/to/your/casa

fish

Write above line in your config.fish.

set -gx ALMAQSO_CASA /path/to/your/casa

Note

I am considering to delete this feature and alternatively I want you to specify the path to CASA in the parameter of the functions.

Prepare the environment

Then please install pipenv.

pip install pipenv

Then, you can reproduce the environment by

pipenv install --dev

You can enter the environment by

pipenv shell

Test run

Edit test/test_download_analysis.py:

# test/test_download_analysis.py
# Edit the following constants.
DOWNLOAD = False  # True: Download the tar file, False: Use the existing tar file
MODE = 'aftercal'  # 'all': All Steps, 'calonly': Step 1-4, 'aftercal': Step 5-8 of analysis

Then you can run the test by

pytest

Usage

To work with this package, you have to download JSON files from ALMA Calibrator Source Catalogue. Explanation on it is here.

Sample code is at sample/sample.py.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

almaqso-1.0.2.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

almaqso-1.0.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file almaqso-1.0.2.tar.gz.

File metadata

  • Download URL: almaqso-1.0.2.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for almaqso-1.0.2.tar.gz
Algorithm Hash digest
SHA256 66fa80abbb4016050f676514ec7f64e30bf32e31faf279f6fc56868182238521
MD5 f69d5ec7a83c63cab0de83028641691d
BLAKE2b-256 0e594d4f146fdbd43dd6b225e4fb987a27aea92ce57d7812daf0797cdbffdd72

See more details on using hashes here.

File details

Details for the file almaqso-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: almaqso-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for almaqso-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 781e558732127510cacea5883dba9b40e3f28d12330dcdc31561e4bb93d870f0
MD5 64d5375f36f5a5d0f101db78e5df0a59
BLAKE2b-256 e129b6dea99e332c9bb797c25c9537bfa0649ba3053a4b50fe536b4d5fc1c07d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page