Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e369d53

Browse files
committedFeb 6, 2025·
Final commit before rebase
1 parent 1ba5cb5 commit e369d53

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed
 

‎python/lsst/pipe/tasks/fit_coadd_multiband.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def build_catexps(self, butlerQC, inputRefs, inputs) -> list[CatalogExposureInpu
356356
catalog=catalog,
357357
band=dataId['band'],
358358
imageForRedistribution=exposure,
359-
removeScarletData=True,
359+
removeScarletData=False,
360360
updateFluxColumns=False,
361361
)
362362
catexp_dict[dataId['band']] = CatalogExposureInputs(

‎python/lsst/pipe/tasks/multiBand.py

+20
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,26 @@ def run(self, exposure, sources, skyInfo, exposureId, ccdInputs=None,
680680
reference catalog in the matchResults attribute, and denormalized
681681
matches in the denormMatches attribute.
682682
"""
683+
import matplotlib.pyplot as plt
684+
leaves = sources[sources["deblend_depth"] == 2]
685+
for src in leaves:
686+
heavy = src.getFootprint()
687+
bbox = heavy.getBBox()
688+
sx = src["deblend_peak_center_x"] - bbox.getMinX()
689+
sy = src["deblend_peak_center_y"] - bbox.getMinY()
690+
model = heavy.extractImage().array
691+
fp = model != 0
692+
img = exposure[bbox].image.array * fp
693+
_, ax = plt.subplots(1, 2, figsize=(10, 5))
694+
#vmax = np.nanmax(model)
695+
#vmin = np.nanmin(model)
696+
#ax[0].imshow(model, vmin=vmin, vmax=vmax)
697+
#ax[1].imshow(img, vmin=vmin, vmax=vmax)
698+
ax[0].imshow(model)
699+
ax[1].imshow(img)
700+
ax[0].plot(sx, sy, "cx")
701+
ax[1].plot(sx, sy, "cx")
702+
plt.show()
683703
self.measurement.run(sources, exposure, exposureId=exposureId)
684704

685705
if self.config.doApCorr:

‎schemas/Object.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ refFlags:
733733
- detect_isDeblendedModelSource
734734
- merge_peak_sky
735735
- deblend_nChild
736+
- deblend_depth
736737
- deblend_nPeaks
737738
- deblend_failed
738739
- deblend_skipped

‎schemas/initial_stars_detector_standardized.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ flags:
173173
- deblend_hasStrayFlux
174174
- deblend_masked
175175
- deblend_nChild
176+
- deblend_depth
176177
- deblend_parentTooBig
177178
- deblend_patchedTemplate
178179
- deblend_rampedTemplate
@@ -193,4 +194,3 @@ flag_rename_rules:
193194
- ['ext_shapeHSM_Hsm', 'hsm']
194195
- ['base_', '']
195196
- ['slot_', '']
196-

0 commit comments

Comments
 (0)
Please sign in to comment.