sampinfo

wfc3tools.sampinfo.sampinfo(imagelist, add_keys=None, mean=False, median=False)[source]

Print information for each sample in the image.

Parameters:
imageliststr or list

The input can be a single image or list of images.

add_keyslist or None

A list of of additional keys for printing. If a key is not found in the sample, the global header will be checked. If a key is not found, the β€œNA” string will be printed. Default is None.

meanbool

If True, print the mean statistic. Default is False.

medianbool

If True, print the median statistic. Default is False.

Examples

>>> from wfc3tools import sampinfo
>>> imagename = 'ibcf02faq_raw.fits'
>>> sampinfo(imagename)

To get the median value for each sample:

>>> sampinfo(imagename, median=True)

To print additional keys for information:

>>> sampinfo(imagename, add_keys=["DETECTOR"])

To get the average value for each sample:

>>> sampinfo(imagename, mean=True)