Interface for spectra, images and cubes (mpdaf.obj
)
The mpdaf.obj
package provides a way to load a MUSE cube created by the MUSE
pipeline (i.e. a 3GB FITS data cube of approximately 300x300x3680 pixels) into a
Python object that manages spatial world-coordinates, wavelength world
coordinates, pixel variances and bad pixel information.
It is then relatively easy to extract smaller cubes, narrow-band images or spectra from the cube. The world coordinates, associated variances and bad-pixel masks are propagated into these extracted cubes, images, and spectra. Many useful operations like masking, interpolation, re-sampling, smoothing and profile fitting are also provided.
Contents:
Reference/API
mpdaf.obj Package
Functions
|
|
|
|
|
Convert air wavelengths to vacuum wavelengths. |
Return the angular increments of pixels along the Y and X axes of an image array whose coordinates are described by a specified FITS CD matrix. |
|
|
Return Y-axis and X-axis slice objects that bound a rectangular image region that just encloses either an ellipse or a rectangle, where the rectangle has a specified center position, Y-axis and X-axis radii, and a given rotation angle relative to the image axes. |
|
Filter an input signal by using the 1 standard deviation noise estimate and wavelets epsilon is the iteration-stop parameter for extracting signal from the residual signal. |
|
Transform degrees to degrees:arcminutes:arcseconds strings. |
|
Transform degrees to hours:minutes:seconds strings. |
|
Transform equatorial coordinates from degrees to sexagesimal strings. |
|
Determine the reference frame and equinox in standard FITS WCS terms. |
|
Transform degrees:arcminutes:arcseconds strings to degrees. |
|
Convert flux from erg.s-1.cm-2.A-1 to AB mag. |
|
Create a new image from a 2D gaussian. |
|
|
|
Transform hours:minutes:seconds strings to degrees. |
|
Return the rotation angle of the image. |
|
Test if |
|
Test if |
|
Test if |
|
An iterator over the images of successive spectral pixels in a Cube |
|
An iterator over the spectra of successive image pixels in a Cube |
|
Convert flux from AB mag to erg.s-1.cm-2.A-1 |
|
Create a mask of sources, using photutils. |
|
Create a new image from a 2D Moffat function. |
|
Plot the RGB composite image with axes labeled in pixels. |
|
Transform equatorial coordinates from sexagesimal strings to degrees. |
|
Calculate the approximate wavelength in air for vacuum wavelengths. |
|
Transform from wavelet to real space. |
|
Transform a signal into wavelet space. |
Classes
|
This class manages Cube objects, which contain images at multiple wavelengths. |
|
Manages a list of cubes and handles the combination. |
|
Manages a list of cubes and handles the combination to make a mosaic. |
|
|
|
Alter mouse-over coordinates displayed by plt.show() |
|
This class stores 1D Gaussian parameters. |
|
This class stores 2D gaussian parameters. |
|
Manage image, optionally including a variance and a bad pixel mask. |
|
This class stores 2D moffat parameters. |
|
Allow one to keep track of the spatial frequency limits of an image. |
|
Spectrum objects contain 1D arrays of numbers, optionally accompanied by corresponding variances. |
|
This class is inherited from the |
|
The WCS class manages the world coordinates of the spatial axes of MPDAF images, using the pywcs package. |
|
WaveCoord class manages world coordinates in spectral direction. |