nifits.io.oifits

A module for reading/writing NIFITS files and handling the data.

To open an existing NIFITS file, use nifits.from_nifits constructor.

To save an NIFITS object to a file, use nifits.to_nifits method.

A summary of the information in the oifits object can be obtained by using the info() method:

> import oifits > oifitsobj = oifits.open(‘foo.fits’) > oifitsobj.info()

For further information, contact R. Laugier

Module Attributes

NI_FOV_DEFAULT_HEADER

Obtaining the goecentric location of observatories.

Functions

array_eq(a, b)

Test whether all the elements of two arrays are equal.

check_item(func)

A decorator for the fits.Header.__getitem__.

create_basic_fov_data(D, offset, lamb, n)

A convenience function to help define the FOV function and data model

getclass(classname)

nulfunc(self, *args, **kwargs)

Classes

NI_CATM([data_table, header, unit, data_array])

The complex amplitude transfre function

NI_DSAMP([data_table, header, unit, data_array])

The matrix that defines linear combinations of output wavelengths.

NI_EXTENSION([data_table, header, unit])

NI_EXTENSION Generic class for NIFITS extensions

NI_EXTENSION_ARRAY([data_table, header, ...])

Generic class for NIFITS array extensions

NI_EXTENSION_CPX_ARRAY([data_table, header, ...])

Generic class for NIFITS array extensions.

NI_FOV([data_table, header, unit])

The NI_FOV data containing information of the field of view (vigneting) function as a function of wavelength.

NI_IOTAGS([data_table, header, unit])

Contains information on the inputs and outputs.

NI_IOUT([data_table, header, unit])

NI_IOUT : a recording of the output values, given in intensity, flux, counts or arbitrary units.

NI_KCOV([data_table, header, unit, data_array])

The covariance matrix for the processed data contained in KIOUT.

NI_KIOUT([data_table, header, unit])

NI_KIOUT : a recording of the processed output values using the the post-processing matrix given by NI_KMAT.

NI_KMAT([data_table, header, unit, data_array])

The kernel matrix that defines the post-processing operation between outputs.

NI_MOD([data_table, header, unit])

Contains input modulation vector for the given observation.

NI_OSWAVELENGTH([data_table, header, unit])

An object storing the wavelength before a downsampling.

OI_ARRAY([data_table, header, unit])

OI_ARRAY definition

OI_STATION([tel_name, sta_name, diameter, ...])

This class corresponds to a single row (i.e. single station/telescope) of an OI_ARRAY table.

OI_TARGET([data_table, header, unit])

OI_TARGET definition.

OI_WAVELENGTH([data_table, header, unit])

An object storing the OI_WAVELENGTH information, in compatibility with OIFITS practices.

nifits([header, oi_array, ni_catm, ni_fov, ...])

Class representation of the nifits object.