Skip to main content

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

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.

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 digits
  • EQUINOX 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 different PHITYP, AMPTYP, AMPORDER, or PHIORDER can no longer be merged
  • OI_FLUX tables with different FOV or FOVTYPE can not longer be merged

New features:

  • OIFITS1 & OIFITS2 classes have get_visHDUs, get_vis2HDUs, get_T3HDUs methods

0.4.2

New features:

  • 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.

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

pyoifits-0.4.2.tar.gz (46.6 kB view hashes)

Uploaded Source

Built Distribution

pyoifits-0.4.2-py3-none-any.whl (56.1 kB view hashes)

Uploaded Python 3

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