extract_ifu

jwst.extract_1d.ifu.extract_ifu(input_model, source_type, extract_params)[source]

Perform 1D extraction for IFU data.

Parameters:
input_modelIFUCubeModel

The input model.

source_typestr

“POINT” or “EXTENDED”.

extract_paramsdict

The extraction parameters for aperture photometry.

Returns:
ra, decfloat

RA and Dec are the right ascension and declination respectively at the nominal center of the image.

wavelengthndarray

The 1D wavelength in micrometers at each plane of the IFU cube.

temp_fluxndarray

The 1D sum of the data values in the extraction aperture minus the sum of the data values in the background region (scaled by the ratio of areas), for each plane. The data values are in units of surface brightness, so this value isn’t really the flux, it’s an intermediate value. Dividing by npixels (to compute the average) will give the value for the surf_bright (surface brightness) column, and multiplying by the solid angle of a pixel will give the flux for a point source.

f_var_poissonndarray

The 1D extracted Poisson variance values to go along with the temp_flux array.

f_var_rnoisendarray

The 1D extracted read noise variance values to go along with the temp_flux array.

f_var_flatndarray

The 1D extracted flat field variance values to go along with the temp_flux array.

backgroundndarray

For point source data, the background array is the count rate that was subtracted from the total source data values to get temp_flux. This background is determined for annulus region. For extended source data, the background array is the sigma clipped extracted region.

b_var_poissonndarray

The 1D extracted Poisson variance values to go along with the background array.

b_var_rnoisendarray

The 1D extracted read noise variance values to go along with the background array.

b_var_flatndarray

The 1D extracted flat field variance values to go along with the background array.

npixelsndarray

For each slice, this is the number of pixels that were added together to get temp_flux.

dqndarray

The 1D data quality array.

npixels_bkgndarray

For each slice, for point source data, this is the number of pixels that were added together to get temp_flux for an annulus region; for extended source data, it is the number of pixels used to determine the background

radius_matchndarray

The size of the extract radius in pixels used at each wavelength of the IFU cube.

x_center, y_centerfloat

The x and y center of the extraction region.