writeFitsImage

lsst.afw.display.writeFitsImage(file: str | int | BytesIO, data: Image | Mask, wcs: SkyWcs | None = None, title: str = '', metadata: PropertySet | None = None) None

Write a simple FITS file with no extensions.

Parameters:
filestr or int

Path to a file or a file descriptor.

datalsst.afw.Image or lsst.afw.Mask

Data to be displayed.

wcslsst.afw.geom.SkyWcs or None, optional

WCS to be written to header to FITS file.

titlestr, optional

If defined, the value to be stored in the OBJECT header. Overrides any value found in metadata.

metadatalsst.daf.base.PropertySet or None, optional

Additional information to be written to FITS header.