OIFITS (Data Exchange Standard for Optical Interferometry, A&A 597, A8, 2017)
Project description
Purpose
Read and manipulate Optical Interferometry FITS files. For a definition of the standards
- version 2: Duvert at al. (2017), A&A 597, A8 (abstract) (pre-print)
- version 1: Pauls et al. (2005), PASP 117, 1255 (abstract) (pre-print)
Installation
Site-wide installation will be performed with sudo -H pip3 install pyoifits
on unix-like systems.
At a user level, within a virtual environment, pip3 install pyoifits
.
Short example
Read and merge to OIFITS datasets and tranform to a standard astropy
table.
import oifits
data1 = oifits.read('file1.fits')
data2 = oifits.read('file2.fits')
data = data1 + data2
tab, C = data.to_table(correlations='numpy')
val = tab['value']
err = tab['error']
covar = C * np.outer(err, err)
There is also a short demo.
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
pyoifits-0.4.tar.gz
(43.2 kB
view hashes)
Built Distribution
pyoifits-0.4-py3-none-any.whl
(53.0 kB
view hashes)