minmed

jwst.emicorr.emicorr.minmed(data)[source]

Calculate the median image from a stack of images.

If there are 2 or fewer frames, the minimum image is computed instead of the median.

Parameters:
datandarray

3D data array, to be stacked along the first axis.

Returns:
medimgndarray

2D median or minimum image.