Skip to content

Add the pixels which ESIS leaves out of the fit to the MART roadmap - #53

Closed
roytsmart wants to merge 1 commit into
mainfrom
docs/roadmap-pixel-mask
Closed

roytsmart wants to merge 1 commit into
mainfrom
docs/roadmap-pixel-mask

Conversation

@roytsmart

Copy link
Copy Markdown
Contributor

The Level-4 product of tempest left some pixels of each sensor out of the fit, and the roadmap did not mention them. This adds them.

Why

The mask over the storage region of each ESIS sensor is slightly misaligned and shades a strip of active columns at the short-wavelength edge, about 8 to 22 of them depending on the channel. The optical model predicts He I 584 Å there, so MART darkens the scene to match columns which were never lit. Tempest removed the weights of those pixels, and of a border of 4 pixels around each sensor, from the forward weights and their transpose. ctis has no way to leave a pixel out of an inversion.

What changes

Only docs/roadmap/cuda-mart.rst:

  • Design, a new item, "Pixels left out of the fit, at ESIS scale": the entries of those pixels are set to zero in each block of weights before it is counted and placed, and the builder drops exact zeros, so both operators lose them. Which pixels to leave out stays in esis.
  • Milestones: M8 brings the pixels left out along with the tied model.
  • Risks and open questions, a new item, "Pixels the model does not describe (M6, M8)":
    • the streamed build of M6 has to hand each block of weights to its caller before it is counted and placed, which is not designed yet;
    • a pixel without weights is still counted in the mean chi squared wherever the sensor has read noise, as a pixel which fits exactly;
    • marking the pixels as not a number in the images does not work today: the mean chi squared of the channel becomes not a number, and a scene cell touching such a pixel takes no correction from that channel;
    • the widths of the shadow were measured in July and should be measured again;
    • two other homes considered: an option on MartInverter, or an aperture over the sensor in the optical model of esis.

Checked

The two statements about the kernels were probed on merit and update of ctis/inverters/_iterative/_mart/_kernels.py, with four pixels and one voxel. The docs were not built locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_013REu9FhsgQaUpbNRWYY5nf

The product of tempest left out the shadow of the storage mask on each
sensor and a border of 4 pixels, by removing their weights, and ctis has
no way to leave a pixel out of an inversion. The roadmap now says how
the matrices do it (zeros in each block of weights, which the builder
drops), that M8 brings it, and what is open: the count of the mean chi
squared, pixels marked as not a number, and the widths of the shadow.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013REu9FhsgQaUpbNRWYY5nf
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (44a2f61) to head (bb09c08).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #53   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines         4437      4437           
=========================================
  Hits          4437      4437           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

roytsmart added a commit that referenced this pull request Dec 3, 2026
#56 merged, so the roadmap now says how pixels are left out of the
fit: an instrument names the pixels of its sensor which it models, and
the mask is applied around the matrices instead of by zeroing the
weights of each block. A design bullet takes over the account of the
shadow of the storage mask from #53, corrected to the mechanism as
built, and the table of where things stand gains a row for #56. M8
brings the shadow and the border of 4 pixels, which esis measures, and
a new risk says that the widths of the shadow need measuring again.
The section on frame 15 no longer says that ctis cannot leave pixels
out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01StcJvVHMXbjJmyFFwf4Pcn
roytsmart added a commit that referenced this pull request Dec 3, 2026
Frame 15 of the ESIS flight has been inverted on the host at
production size, with the seven spectral lines of the model of tempest
untied, and the roadmap now says what that showed, in a new section,
"Frame 15 on the host".

Of the model: the four channels differ in throughput by up to half, as
tempest found; the scene holds a fifth to two fifths of the radiance of
the FITS files of tempest; the support of tempest reaches past the
field stop of today's model; the images hold light beyond the edges of
the field which the model lacks, so both inversions come out red along
the edges; a smooth mismatch across each image changes no Doppler
shift; the shadow of the storage mask, left in the fit, leaves lines in
the scene; and the mean chi squared of a channel counts its blank
pixels.

Of the Doppler shifts, also on synthetic frames whose O V moves as the
quiet Sun seen by SUMER: the first update of MART leaves a ghost, red
below every bright feature and blue above it, whose strength the width
of the first guess sets; stopping at the mean chi squared of tempest
stops inside it; and MART recovers a third to a half of a Doppler shift
over 3 arcsec, a fifth to a third over 12, and nothing of its mean over
the field. The centroid reads a Doppler shift best.

M8 now also brings over the thermal widths of the first guess of
tempest, a normalization of each channel of each frame and its stopping
rule, and cuts the support to the field stop of its model. The time of
the 30 frames on the host uses the 558 iterations tempest recorded, the
comparison of the loops no longer says that they differ in exponent,
which is out of date since #42, and four new risks cover the recovery
of Doppler shifts, the light which the model lacks, the radiance of the
distributed product and the throughput of each channel.

The roadmap also records `where_sensor` (#56): a row in the table of
where things stand, and a design bullet which takes over the account of
the shadow of the storage mask from #53, with the mask applied around
the matrices, as built. M8 brings the shadow and a border of 4 pixels,
which esis measures, and a new risk says that the widths of the shadow
need measuring again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01StcJvVHMXbjJmyFFwf4Pcn
@roytsmart

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #55, which carries over the account of the shadow of the storage mask and describes the pixels left out of the fit as #56 built them: where_sensor on the instrument, applied around the matrices instead of by zeroing the weights of each block.

@roytsmart roytsmart closed this Dec 3, 2026
@roytsmart
roytsmart deleted the docs/roadmap-pixel-mask branch December 3, 2026 21:52
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