Skip to content

Image sims: epoch-membership bounds for the trimmed 2048x4612 CCDs - #957

Open
cailmdaley wants to merge 2 commits into
developfrom
fix/imsims-ccd-bounds
Open

cailmdaley wants to merge 2 commits into
developfrom
fix/imsims-ccd-bounds

Conversation

@cailmdaley

Copy link
Copy Markdown
Contributor

Image simulations inherit the real-data epoch-membership bounds CCD_SIZE = 33,2080,1,4612, the MegaCam DATASEC of an untrimmed 2112×4644 CCD. The SKiLLS CCDs are trimmed to 2048×4612 with no overscan, so:

  • an object at 2048 < x < 2080 is given an epoch on pixels that don't exist. Since the in-house stamp extractor (get_stamps, ca2a76f) landed, tile_vignets raises Stamp centre(s) fall outside the image (shape (4612, 2048)), and every image-sim tile fails.
  • an object at x < 33 loses an epoch it has.

The sim WCS is in the trimmed frame. Bright tile objects mapped into a sim exposure land on their light to 0.00 px (median over 1,588 objects, exposure 2086771, tile 233.293). The fix is therefore the bounds alone, not the WCS.

Change. input_types.image_sims.ccd_size: 0,2047,0,4611 reaches config_tile_Sx.ini as SP_CCD_SIZE through tile_detect's prologue, for image sims only. The ini keeps the data value as its default (${SP_CCD_SIZE:-33,2080,1,4612}), so data params, and with them data reruns, are unchanged. The legacy example/cfis_image_sims/config_tile_Sx.ini gets the same bounds. astra.yaml's detection.epoch_membership_ccd_bounds records both values.

Earlier sims m measurements ran with the data bounds. Their edge objects had padded off-image stamps and lost epochs at x < 33. The size of that effect on m is unmeasured.

Found while setting up the defect/blend A/B on the blended SKiLLS sims.

🤖 Generated with Claude Code

The sims inherited the MegaCam DATASEC bounds (33,2080) of untrimmed
2112-px CCDs. On the 2048-px sim CCDs, objects at 2048<x<2080 gained an
epoch on pixels that do not exist (get_stamps raises: 'Stamp centre(s)
fall outside the image'), and objects at x<33 lost a real one.
input_types.image_sims.ccd_size reaches config_tile_Sx.ini as
SP_CCD_SIZE; data keeps the ini default, so data params are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant