|
lsst.obs.base
18.1.0-22-gcd16eb0+1
|
Classes | |
| class | CameraMapper |
Functions | |
| def | exposureFromImage (image, dataId=None, mapper=None, logger=None, setVisitInfo=True) |
| def | validateRecipeFitsStorage (recipes) |
| def lsst.obs.base.cameraMapper.exposureFromImage | ( | image, | |
dataId = None, |
|||
mapper = None, |
|||
logger = None, |
|||
setVisitInfo = True |
|||
| ) |
Generate an Exposure from an image-like object
If the image is a DecoratedImage then also set its WCS and metadata
(Image and MaskedImage are missing the necessary metadata
and Exposure already has those set)
Parameters
----------
image : Image-like object
Can be one of lsst.afw.image.DecoratedImage, Image, MaskedImage or
Exposure.
Returns
-------
`lsst.afw.image.Exposure`
Exposure containing input image.
Definition at line 1312 of file cameraMapper.py.
| def lsst.obs.base.cameraMapper.validateRecipeFitsStorage | ( | recipes | ) |
Validate recipes for FitsStorage
The recipes are supplemented with default values where appropriate.
TODO: replace this custom validation code with Cerberus (DM-11846)
Parameters
----------
recipes : `lsst.daf.persistence.Policy`
FitsStorage recipes to validate.
Returns
-------
validated : `lsst.daf.base.PropertySet`
Validated FitsStorage recipe.
Raises
------
`RuntimeError`
If validation fails.
Definition at line 1359 of file cameraMapper.py.
1.8.13