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 pyoifits
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.
Related projects
- oifits reads an OIFITS file into a table
- oifits reads and write OIFITS v. 1, mostly geared towards VLTI/MATISSE
Release notes
0.4
New features:
- Method
to_table()
optionally returns a correlation matrix
0.4.1
Bug fixes:
WAVELMIN
&WAVELMAX
FITS keywords have a correct number of significant digitsEQUINOX
FITS keyword now passes verification- No runtime error when a duplicate
INSNAME
has to be renamed - OI data (
OI_VIS
,OI_VIS2
,OI_T3
,OI_FLUX
) tables merge correctly OI_VIS
tables with differentPHITYP
,AMPTYP
,AMPORDER
, orPHIORDER
can no longer be mergedOI_FLUX
tables with differentFOV
orFOVTYPE
can not longer be merged
New features:
OIFITS1
&OIFITS2
classes haveget_visHDUs
,get_vis2HDUs
,get_T3HDUs
methods
0.4.2
New features:
- Method
to_table()
allows the user to restrict to a subset of target names, instrument setup names, arrays, wavelength range, and/or date range - OIFITS classes have new method
visualize()
to plot an interferometric observable as a function of time, baseline length, or spatial frequency.
0.4.3
Bug fixes:
- Successive column renamings no longer lead to
KeyError
- Typos in this doc
New features:
- Method
bin_spectral_channels(R)
allows the user to rebin to a given spectral resolution.
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.3.post2.tar.gz
(48.6 kB
view hashes)
Built Distribution
Close
Hashes for pyoifits-0.4.3.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96750cdf079b23db2cbad303eb9baeb70189f581f58a063c323119341410f66c |
|
MD5 | 85791d4a23714cff312d29aed04c6ac2 |
|
BLAKE2b-256 | f6c0e58c702a819b1c805f931f3182f9cb86b8b7f5a27798d24de9655e21d41e |