Details
-
Type:
Improvement
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Labels:None
-
Story Points:10
-
Epic Link:
-
Sprint:DB_S18_03
-
Team:Data Access and Database
Description
Lately, there has been a visit to the underlying class that represents an image loaded from a FITS file. The two classes used are Image and Exposure, with Image (raw FITS) objects missing the metadata, which includes WCS info among others. From DM-13412, it turns out that the underlying image object is NOT of the Exposure type after all, as exposed by the unit test testGetDR7() in obs_sdss.
Per KT, we should investigate the issue and "properly standardize to an Exposure."
Attachments
Issue Links
- contains
-
DM-8097 butler.get('raw_sub') doesn't return a sub image.
- Won't Fix
-
DM-12819 Explore possible reduction of memory footprint needed for image cutouts
- Done
- has to be done after
-
DM-13412 camera mapper should specify DecoratedImageU instead of ImageU
- Done
-
DM-13737 Provide DAX API to compose/de-compose Butler data_id for sdss_stripe82 images
- Done
- has to be done before
-
DM-12819 Explore possible reduction of memory footprint needed for image cutouts
- Done
>>> import lsst.afw.image as afwImage
>>> image = afwImage.ExposureF("fpC-002708-r3-0103.fits")
afw.image.MaskedImage WARN: Expected extension type not found: IMAGE
>>> image
<lsst.afw.image.exposure.exposure.ExposureF object at 0x7f8fabffb730>
>>> dir(image)
['Factory', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'clone', 'convertD', 'convertF', 'dtype', 'getBBox', 'getCalib', 'getDetector', 'getDimensions', 'getFilter', 'getHeight', 'getImage', 'getInfo', 'getMask', 'getMaskedImage', 'getMetadata', 'getPsf', 'getVariance', 'getWcs', 'getWidth', 'getX0', 'getXY0', 'getY0', 'hasPsf', 'hasWcs', 'image', 'mask', 'maskedImage', 'readFits', 'setCalib', 'setDetector', 'setFilter', 'setImage', 'setInfo', 'setMask', 'setMaskedImage', 'setMetadata', 'setPsf', 'setVariance', 'setWcs', 'setXY0', 'variance', 'writeFits']