embedsub

wfc3tools.embedsub.embedsub(files)[source]

Embed subarray in fullframe image.

Given an image specified by the user which contains a subarray readout, return a full-frame image with the subarray implanted at the appropriate location.

The output file will contain the subarray image placed inside the full frame extent of a regular image.

Parameters:
filesstr or list

The name of the image file containing the subarray. This can be a single filename or a list of files. The ipppssoot will be used to construct the output filename. You should input an FLT image.

Examples

This function calls sub2full to calculate the subarray position on the full frame image.

>>> from wfc3tools import embedsub
>>> embedsub('ic5p02eeq_flt.fits')
Subarray image section [x1,x2,y1,y2] = [2828:3339,215:726]
Image saved to: ic5p02eef_flt.fits