Details
-
Type:
RFC
-
Status: Adopted
-
Resolution: Unresolved
-
Component/s: DM
-
Labels:None
Description
DMS-REQ-0274 requires that the image cutouts provided in alert packets contain WCS, PSF, variance, and mask information. Providing the cutouts as serializations of afw.Exposure would require alert packet consumers to use the stack to read the cutouts, which is not desirable for portability.
We propose instead that alert packets contain a serialization of the image cutouts converted to astropy.nddata.CCDData objects. This class currently provides a data structure with numpy.ndarray-like data, uncertainty, mask, and flag planes; metadata, and WCS. Users would be able to read and interpret alert cutouts using astropy only.
The DMSR-required PSF is not presently included in CCDData, so we would need to develop a suitable PSF representation and attempt to upstream it to astropy if this RFC is approved.
Attachments
Issue Links
- is triggered by
-
DM-24633 Create an RFC for using CCDData for cutouts in alert packets
- Done
- is triggering
-
DM-25160 Record use of CCDData alert stamps in DPDD and DMTN-093
- To Do
-
DM-36768 Add psf image to alert cutouts
- To Do
-
DM-24325 Include CCDData cutouts in alert packets
- Done
-
DM-25161 Develop proposal for PSF representation in astropy CCDData
- Done
Thanks Tim Jenness, this is helpful.
What I would like to propose is that our interface be "whatever FITS CCDData writes"--that is, we commit to a FITS serialization, but rather than define our FITS format on a blank page we follow along with CCDData as it updates. (Again, at minimum we'd have to get them to add PSF support.) I suspect you'll say that's a bad idea due to version instabilities etc. I'd just prefer we not define our own thing that requires our own new implementation if we can avoid it. I'd welcome your thoughts on how to approach this.
I think the PSF we include should be a simple one appropriate only for the cutout in question (which as you say is small)--and similarly the WCS can and should be a simple local WCS.