RawFile¶
-
class
mpdaf.drs.
RawFile
(filename)[source]¶ Bases:
object
RawFile class manages input/output for raw FITS file.
- Parameters
- filename
str
The raw FITS file name.
- filename
- Attributes
Methods Summary
get_channel
(self, extname)Return a Channel object.
Return the list of existing channels names.
get_keywords
(self, key)Return the keyword value.
info
(self)Print information.
plot
(self[, title, channels, area, scale, …])Plot the raw images.
plot_white_image
(self[, mask, channels])Reconstructs the white image of the FOV using a mask file and plots this image.
reconstruct_white_image
(self[, mask, channels])Reconstructs the white image of the FOV using a mask file.
Methods Documentation
-
get_channel
(self, extname)[source]¶ Return a Channel object.
- Parameters
- extname
str
The extension name.
- extname
- Returns
-
plot
(self, title=None, channels='all', area=None, scale='linear', vmin=None, vmax=None, zscale=False, colorbar=None, figsize=None, **kwargs)[source]¶ Plot the raw images.
- Parameters
- title
str
Figure title (None by default).
- channels
list
or ‘all’ List of channel names. All by default.
- area
list
list of pixels
[pmin,pmax,qmin,qmax]
to zoom.- scale
str
‘linear’ | ‘log’ | ‘sqrt’ | ‘arcsinh’ | ‘power’ The stretch function to use for the scaling (default is ‘linear’).
- vmin
float
Minimum pixel value to use for the scaling. If None, vmin is set to min of data.
- vmax
float
Maximum pixel value to use for the scaling. If None, vmax is set to max of data.
- zscalebool
If true, vmin and vmax are computed using the IRAF zscale algorithm.
- colorbar
str
If ‘h’/’v’, a horizontal/vertical colorbar is added.
- figsize: tuple
width, height of the figure.
- kwargs
dict
Additional options passed to
Image.plot
.
- title
-
plot_white_image
(self, mask=None, channels='all')[source]¶ Reconstructs the white image of the FOV using a mask file and plots this image.