We now go to greater lengths to check that the information in the file is consistent with the LSST standard, warning the user – and in some cases refusing to proceed – if it does not.
Improved support for non-standard FITS headers
The LSST stack is now capable of loading FITS files which contain non-standard headers of the form
nn=5..16), as written by SCAMP, and
EQUINOX headers with a "
J" prefix, as written by SkyMapper.
It is now possible to perform instrument signal removal on an
Exposure which has no
Detector-like object object which supports returning gain and saturation level, was added to make it possible to run
saturationDetection if required.
PVi_j header cards are correctly saved to FITS files
This makes it possible to round-trip e.g. TPV headers.
Changes to compound fields and delimiters in Catalog Schemas.
In previous releases of the pipeline, version 0 schemas were deprecated but still supported. They have now been removed, but old catalogs saved as version 0 will still be readable - they will be converted to version 1 on read, with period delimiters converted to underscores, and all compound fields unpacked into scalar fields that can be used with a corresponding
FunctorKey. This procedure obviously does not preserve field names, but all slot definitions will be preserved, so code that only relies on slot or minimal schema accessors (
getPsfFlux(), etc.) should not need to be modified.
Allow for use of Approximate (Chebyshev) model in background estimation
While the intention is to eventually set the Approximate background subtraction scheme as the default, there is some clean-up and restructuring that needs to be done before resetting the defaults (which may also require adjusting some defaults in the calibrate stage to be more appropriate for the approximation, as opposed to interpolation, scheme). Therefore, the default setting has not been changed (i.e. the default is still to use an interpolation scheme for background estimation). The Chebychev approximation can be selected for background estimation through configuration parameters in the obs_CAMERA packages, i.e. useApprox=True and, optionally, approxOrderX (approximation order in X for background Chebyshev), approxOrderX (approximation order in Y for background Chebyshev: currently approxOrderY must be equal to approxOrderX), weighting (if True, use inverse variance weighting in calculation).
Multi-band processing for coadds
Detect sources (generate Footprints for parent sources) and model background for a single band.
Merge Footprints and Peaks from all detection images into a single, consistent set of Footprints and Peaks.
Deblend and measure on per-band coadds, starting from consistent Footprints and Peaks for parent objects.
Combine separate measurements from different bands into a catalog suitable for driving forced photometry. Essentially, it must have a centroid, shape, and CModel fit for all objects, even for objects that were not detected on the canonical band. Will assume that all input catalogs already have consistent object lists.
Enable use of deblended HeavyFootprints in coadd forced photometry
See the description of the multi-band coadd processing work performed in S15 for further motivation of this change.
Limited the fractional number of masked pixels per source
CModel has difficulties modelling backgrounds in vignetted regions of the focal plane, leading to a performance bottleneck. To mitigate the issue, if the fractional number of masked pixels in a particular source exceeds a given threshold, that source will be skipped.
Peak culling around large objects
An excess of "junk" peaks may be observed around large objects. Given the new multi-band processing architecture (above), these must be consistently removed across bands. We therefore provide a method to consistently "cull" this peaks at an earlier stage, immediately after merging and sorting in
Parent Footprints are the union of their children
Footprints are now trimmed so that they are strictly the union of their children: any pixels which are not assigned to a child are removed. This mitigates an issue whereby stray flux from the parent was not correctly assigned to the children. Note that this has the consequence that parent
Footprints are not necessarily contiguous.
Large Footprints may be skipped on initial processing
For practical processing purposes (specifically total processing time and memory limits due to current hardware limitations), we have the option to skip over objects with large
Footprints during large-scale processing, with the intention to return to these objects to "reprocess" them using different hardware in future. The ability to properly record which objects have been skipped and require further processing has been implemented along with optimizations to the deblender configuration for the maximum number of
Footprint, and the size and area of
Command line tasks for measurement transformation
- Documentation for generic transforms
- Documentation for
- Documentation for
- Documentation for
NO_DATA mask plane
Previously, we have used the
EDGE mask plane to indicate both pixels which are off-the-edge of the detector, and hence have no data available, and pixels near the edge which cannot therefore be properly searched for sources. Here, we introduce the
NO_DATA plane to refer to the former case and now use
EDGE strictly for the latter.
Add slot for flux used in photometric calibration
We define a new slot,
SourceRecords. This slot is used to record the flux used for photometric calibration, rather than hard-coding the name of a particular algorithm in the
PhotoCal task. This slot defaults to a 12 pixel circular aperture flux, the previous default in
Table field prefix for aperture flux measurements changed
Our aperture flux measurement algorithms take a list of radii, in pixels, which define the radii over which measurements should be made. Previously, the names of the table fields produced by the algorithm were defined purely based on the position of the radius in that list (thus, the first radius listed would produce a flux field named
PluginName_0_flux). This has been changed so that the fields are now named after the radius, regardless of its position in the list. Thus, a 12.5 pixel aperture will reult in a field named
PluginName_12_5_flux, regardless of its position in the list.
Faster astrometry reference catalog loading
The cache is saved as
andCache.fits in the astrometry catalog directory. The use of the cache can be disabled through the
andConfig.py file (or the
AstrometryNetDataConfig) by setting
False. To prepare a cache,
setup astrometry_net_data and use the
generateANetCache.py script that now comes in
Bad pixels tracked when coadding images
When co-adding images, we now keep track of what fraction of the input data for a given pixel was masked. If the total masked data exceeds some user-configurable threshold, the mask is propagated to the coadd.
Polygon masking in coadded PSFs
Polygonal masks are used to define the usable area of the focal plane; they can be used to, for example, exclude vignetted areas from coaddition. We now take account of these masks to determine which PSF images to included when building co-added PSFs.
Scale counts to reflect CCD-specific zero-points when warping to create coadd inputs
Solving astrometry with distortions
The default astrometry matcher (
matchOptimisticB) can now match stars against a reference catalog when the stars are distorted (e.g., at the outskirts of a wide field imager) if there is an estimate of the distortion available.
Rejection iterations in astrometry fitting
Astrometric fitting (
FitTanSipWcsTask) now includes support for iterative fitting with rejection.
Inclusion of external package PSF Extractor as option for PSF determination
PSFEx is currently the state of the art external package for PSF determination, used in projects such as DES. LSST wrappers were created such that PSFEx could be used as a plugin in place of the built in PSF determiner. Tests with Hyper Supreme Camera data have shown that PSFEx out performs the built in PSF determiner. (DM-2961)
Improvements to CModel magnitude measurement
The order of arguments to the forced measurement task was reversed, so that it takes a source catalog followed by an
Exposure. This brings it into line with the single frame measurement interface.
N-way spatial matching
A simple utility class for performing spatial matches between multiple catalogs with identical has been added as
lsst.afw.table.multiMatch.MultiMatch. This is intended as a stop-gap measure until more flexible and efficient functionality becomes available, but is already usable.
Display CCD data as laid out in the focal plane
It is now possible to use
lsst.afw.cameraGeom.utils to display CCD data laid out in the focal plane. An example of how this functionality works in practice is available as an IPython notebook.
The following fixes resolve problems visible to end users.
Correctly referring to MathJax means that LaTeX markup in documentation is nicely formatted.
Performance regression in
Footprint dilation resolved
The previous release included improved algorithms for dilating
Footprints. Unfortunately, in some circumstances (notably when dealing with particularly large
Footprints) this code could actually perform more slowly than the previous implementation. This could have significant performance implications for many image processing operations. This regression has now been rectified, and the new dilation operations are significantly faster than the old ones in all circumstances tested.
The following updates/fixes to Footprint handling have been made:
- The default 32-bit heap space used to store FITS variable-length arrays isn't large enough to store some of our extremely large HeavyFootprints. This persistence issue has been fixed the by switching to 64-bit heap descriptors, which is now supported by FITS.
- Footprint::transform is now properly copying peaks over to the new footprint.
- Footprint::clipTo is now properly removing those peaks lying outside the desired region.
- Several parts of the pipeline assume peaks are sorted from most positive to most negative. We now ensure the cross-band merge code maintains this ordering as much as possible (even though the sorting may not be consistent across different bands).
- The merging of a parent and its children’s Footprints was failing in cases where one or more child Footprints were themselves noncontiguous. This has been fixed by adapting the mergeFootprints code in afw such that it combines all the Footprints in the FootprintSet it uses in its implementation (instead of requiring that the FootprintSet have only one Footprint).
Fixed error in memory access in interpolation
An off-by-one error resulted in an attempt to read beyond the allocated memory.
Fixed truncated write of certain WCS information to FITS
Use the correct weighting in photometric calibration
Previously, we were incorrectly weighting by errors, rather than inverse errors.
Remove non-positive variance pixels in coadd creation
When interpolating variance maps we can produce negative values. These then cause failures when we try to take the square root. Ultimately, the means of creating variance maps needs to be fixed (which is DM-3201); as a temporary workaround, we replace negative variance values with infinity.
Task defaults are set correctly for difference imaging
DipoleMeasurementConfig.setDefaults() method incorrectly contained a
return that was executed before the defaults were actually applied. This has been corrected, and a number of tests updated to rely on those defaults.
Build and code improvements
The image display code no longer makes the assumption that display is carried out using ds9. Rather, an API is available which is independent of the the particular image viewer is in use. A backwards compatibility layer ensures that display through ds9 is still supported, while other backends will be added in future.
Measurement framework compiler warnings resolved
The measurement framework was refactored to avoid a series of warnings produced by the clang compiler.
Unsanctioned access to the display by tests suppressed
Some unit tests were attempting to write to a display, even when no display was available. On some systems, this directly caused test failures; on others, it could obscure the true cause of failures when a test did fail.
Unused & obsolete code has been removed from the
This package is effectively obsolete, but is still used in documentation generation which makes removing it entirely complex. For now, therefore, it has simply been trimmed of all unused functionality; it may be removed entirely following DM-2948 .
Reduced verbosity of astrometry.net solver
A correction to the way that astrometry.net logging was propagated to the LSST logging system, together with reducing the priority of some messages, leads to a substantial reduction in chatter from astrometry.
Ensure that slots are present before initializing algorithms that depend upon them
When initializing an algorithm that refers to a particular slot, we resolve the target of the slot and refer to that instead. That means that if the slot definition is changed after measurement has been performed, we are still pointing to the correct information. However, if the algorithm is initialized before the slot it depends on, this resolution could not take place and "circular" aliases could result. We now explicitly check for and throw an error in this case.
Visualizations for astrometry.net solver
It is now possible to display the source positions, distorted source positions and reference positions to assist with debugging.
Subaru support reinstated
obs_subaru package, which provides packages and tasks specific to the Subaru telescope, has been brought up to date with recent changes to the LSST stack and improvements made during Hyper Suprime Cam development.
Refactor & document coadd construction
A number of minor changes and documentation improvements were made to the
MakeCoaddTempExp tasks. These brought the structure of the code better into line with the state-of-the-art development on Hyper Suprime Cam.
Properly handle masking NaN or saturated values in overscans
Resolved an issue where, in certain circumstances, flags in the mask plane for saturated and nan values in overscans were being improperly propagated to all amplifiers in an image. These flags are now applied to the amplifier where the bad values are seen.
Several performance optimizations to the (C++) algorithms used in the deblender have been implemented, in particular those which identify objects with significant amounts of their flux attributed to edge pixels. In addition, memory usage was reduced by removing unused mask planes left over from debugging, not storing masks for deblending templates, and by clipping template images when their associated
Footprints are clipped.
Release notes for Qserv and Webserv