drizzled_hdu_figure

msaexp.utils.drizzled_hdu_figure(hdul, tick_steps=None, xlim=None, subplot_args={'figsize': (10, 4), 'height_ratios': [1, 3], 'width_ratios': [10, 1]}, cmap='bone_r', interpolation='nearest', ymax=None, ymax_percentile=90, ymax_scale=1.5, ymax_sigma_scale=7, vmin=-0.2, z=None, ny=None, output_root=None, unit='fnu', flam_scale=-20, recenter=True, use_aper_columns=False, smooth_sigma=None)[source]

Figure showing drizzled HDU

Parameters
hdulHDUList

The HDUList object containing the data.

tick_stepstuple, optional

The major and minor tick steps for the x-axis.

xlimtuple, optional

The x-axis limits.

subplot_argsdict, optional

Additional arguments for creating the subplots. Default is dict(figsize=(10, 4), height_ratios=[1,3], width_ratios=[10,1]).

cmapstr, optional

The colormap for the image. Default is ‘plasma_r’.

ymaxfloat, optional

The maximum y-axis value. Default is None.

ymax_sigma_scalefloat, optional

The scale factor for setting the maximum y-axis value based on the median error. Default is 7.

vminfloat, optional

The minimum value for the 2D cutout. Default is -0.2.

zfloat, optional

If the redshift is indicated, draw axes with rest-frame wavelengths and indicate some common emission lines

nyfloat, optional

Number of pixels to show on y-axis

output_rootstr, optional

Rootname of the output file. Default is None.

unitstr, optional

Controls the output flux units: ‘fnu’ (default) for microJansky or flam for f-lambda cgs.

flam_scalefloat, optional

The scale factor for the flux unit in the y-axis label. Default is -20.

recenterbool, optional

Whether to recenter the y-axis on the expected source location. Default is True.

use_aper_columnsbool, optional

Whether to use boxcar aperture extraction columns for the 1D spectra. Default is False.

smooth_sigmafloat, optional

The sigma value for smoothing the 2D spectra. Default is None.

Returns
figFigure

The Figure object containing the plot.