LSSTApplications
18.1.0
LSSTDataManagementBasePackage
|
Functions | |
def | imageReadFitsWithOptions (cls, source, options) |
def | imageWriteFitsWithOptions (self, dest, options) |
def | exposureWriteFitsWithOptions (self, dest, options) |
def lsst.afw.image.image.fitsIoWithOptions.exposureWriteFitsWithOptions | ( | self, | |
dest, | |||
options | |||
) |
Write an Exposure or MaskedImage to FITS, with options Parameters ---------- dest : `str` Fits file path to which to write the exposure or masked image. options : `lsst.daf.base.PropertySet` Write options. The items "image", "mask" and "variance" are read. Each must be an `lsst.daf.base.PropertySet` with data for ``lsst.afw.fits.ImageWriteOptions``.
Definition at line 107 of file fitsIoWithOptions.py.
def lsst.afw.image.image.fitsIoWithOptions.imageReadFitsWithOptions | ( | cls, | |
source, | |||
options | |||
) |
Read an Image, Mask, MaskedImage or Exposure from a FITS file, with options. Parameters ---------- source : `str` Fits file path from which to read image, mask, masked image or exposure. options : `lsst.daf.base.PropertySet` Read options: - llcX: bbox minimum x (int) - llcY: bbox minimum y (int, must be present if llcX is present) - width: bbox width (int, must be present if llcX is present) - height: bbox height (int, must be present if llcX is present) - imageOrigin: one of "LOCAL" or "PARENT" (has no effect unless a bbox is specified by llcX, etc.) Raises ------ RuntimeError If options contains an unknown value for "imageOrigin" lsst.pex.exceptions.NotFoundError If options contains "llcX" and is missing any of "llcY", "width", or "height".
Definition at line 36 of file fitsIoWithOptions.py.
def lsst.afw.image.image.fitsIoWithOptions.imageWriteFitsWithOptions | ( | self, | |
dest, | |||
options | |||
) |
Write an Image or Mask to FITS, with options Parameters ---------- dest : `str` Fits file path to which to write the image or mask. options : `lsst.daf.base.PropertySet Write options. The item "image" is read. It must contain an `lsst.daf.base.PropertySet` with data for ``lsst.afw.fits.ImageWriteOptions``.
Definition at line 83 of file fitsIoWithOptions.py.