Skip to main content

Tools to read or process ARTS data

Project description

ARTS tools

DOI Build Status
Processing scripts for Apertif Radio Transient System data

Requirements

  • Python >= 3.6
  • Numpy >= 1.17
  • Astropy

Installation

pip install arts_tools

Fixing archival FITS files

FITS files retrieved from the Apertif Long-Term Archive (ALTA) from before 2020/04/08 can be made readable with arts_fix_fits_from_before_20200408 file.fits. These fixes are applied:

  1. The NAXIS2 value in the header is changed from zero to the correct value
  2. The data size is expressed in bytes instead of bits
  3. The frequency and time axes of the data are swapped
  4. The frequency order of the data and weights, scales, offsets, and frequencies columns is flipped

By default, the script appends _fixed to the filename. Run arts_fix_fits_from_before_20200408 -h for more options.

Note for Science Verification Campaign data

Data from the SVC has a correct NAXIS2 value in some cases. However, the other fixes do need to be applied. This can be forced by running arts_fix_fits_from_before_20200408 --force file.fits.

Reading parametersets

The FITS headers contain an encoded observation parameterset. To print the parameterset, use arts_read_parameterset file.fits. It can also be loaded in python as a dictionary with:

from arts_tools.fits.reader import read_parameterset
parset = read_parameterset('/path/to/file.fits')

Note that all values are read as strings.

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

arts_tools-1.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

arts_tools-1.2-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file arts_tools-1.2.tar.gz.

File metadata

  • Download URL: arts_tools-1.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for arts_tools-1.2.tar.gz
Algorithm Hash digest
SHA256 4e36f16915657e1168823a017566f577b3855c52ee8f2709a95be592aa889003
MD5 556762ede17b8db78342ac2f793e7949
BLAKE2b-256 1da85be32dd8dc2eb681527a12240d05d4b02f65117e7964bc81c2f42dfbe3eb

See more details on using hashes here.

File details

Details for the file arts_tools-1.2-py3-none-any.whl.

File metadata

  • Download URL: arts_tools-1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for arts_tools-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b234563517d0f0382ec4f9da400865b26f627911b81d8ef979bf911b8ddb91fc
MD5 af869baf6635afa7ad762deb42fb1f90
BLAKE2b-256 4565e7a13e620005cf0f7a2f6e3cb1481771a3d36cab82533553414d88c3e159

See more details on using hashes here.

Supported by

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