Tools to read or process ARTS data
Project description
ARTS tools
Processing scripts for Apertif Radio Transient System data
Requirements
- python >= 3.6
- numpy >= 1.17
- astropy
- psrqpy
Installation
pip install arts_tools
Finding known pulsars in the Apertif field-of-view
To find which pulsars are within the field of a given pointing, run
arts_find_pulsars_in_field --ra hh:mm:ss.s --dec dd:mm:ss.s
. This tool also prints in which
compound beam the pulsars should be, so you only need to download those CBs from the archive instead of the
entire observation.
To convert the tied-array beam data, which have frequency-and time-dependent pointing,
to a beam tracking a single point on the sky, use arts_tracking_beams.
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:
- The NAXIS2 value in the header is changed from zero to the correct value
- The data size is expressed in bytes instead of bits
- The frequency and time axes of the data are swapped
- 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 import read_parameterset
parset = read_parameterset('/path/to/file.fits')
Note that all values are read as strings.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file arts_tools-1.3.1.tar.gz
.
File metadata
- Download URL: arts_tools-1.3.1.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 758dcf5a013daf381750b162adfee484cfcdc3d6f0c19fcbb31980c8156dbb86 |
|
MD5 | 2241cedd4a71b9c5e0c674449a20a321 |
|
BLAKE2b-256 | 1b09855094cbea43e53263629fff7affef4f0c587d8dc73ea059848b6295ce55 |