Repository navigation
Conversation
…ral lines The Level-4 model of ESIS ties spectral lines: O IV 608 and 610 come from one ion, as do Mg X 610 and 625, so tempest inverts one scene for each pair and images it at both lines, with a fixed ratio between them. ctis had no way to say that two lines share a scene. The axis of the scene which separates its spectral bands is now `axis_ion`, the name `axis_line` had until now. An ion may emit several lines, given by three new fields of `AbstractInstrument`, `IdealInstrument` and `OptikaInstrument`, all three or none: `axis_line`, the axis of the lines; `wavelength_line`, the rest wavelength of each line along it; and `ratio_line`, with the axes of the ions and of the lines, the photons which each line emits for each photon of the scene of its ion, and zero for the lines of other ions. The scene of an ion is then the spectrum of its velocities, on a Doppler grid, and each of its lines images that spectrum at its own wavelengths, its rest wavelength times 1 + v/c. An ion with no lines given is one line, as before. The matrices keep each line as a voxel of its own, with its own gain and noise, fed the scene of its ion times its ratio, so they are the size of the untied model. The backprojection blends the lines of each ion with the weights of tempest, the share of each line in the flux of its ion, which the first pass of the build now totals, and the first guess of MART uses the backprojection factor of each ion. The methods of both instruments do the same without the matrices. This renames a field of a released version, so the next release is 0.8.0. Code which still passes `axis_line` alone is refused, since the three fields of the lines are given together. The roadmap gains a row for this change, marks the weighting of the lines of an ion as resolved, and says that M8 is ours. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01StcJvVHMXbjJmyFFwf4Pcn
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #57 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 29 29
Lines 4997 5537 +540
==========================================
+ Hits 4997 5537 +540
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Level-4 model of ESIS ties some of its spectral lines together, and ctis had no way to. This lets an ion of the scene emit several lines, and renames the axis of the scene which separates the ions to
axis_ion.Why
O IV 608 and 610 come from one ion, as do Mg X 610 and 625. Tempest inverts one scene for each pair and images it at both lines with a fixed ratio (0.538 for O IV, 0.52 for Mg X), so M8 needs the same to reproduce its product. The roadmap left the API open; this names the axis of the scene after the ions and describes the lines of each ion beside it.
What changes
axis_ionis the axis of the scene which separates its spectral bands, the nameaxis_linehad until now. This breaks a released name, so the next release is 0.8.0. Code which still passesaxis_linealone is refused with an error which says that the fields of the lines are given together.AbstractInstrumentand fields ofIdealInstrumentandOptikaInstrument, given all three or none:axis_line, the axis of the lines;wavelength_line, the rest wavelength of each line, alongaxis_lineonly;ratio_line, with the axesaxis_ionandaxis_line: the photons which each line emits for each photon of the scene of its ion, and zero for the lines of other ions. Each line belongs to one ion, and each ion emits at least one line.na.DopplerPositionalVectorArraygrid, and each line images it at its rest wavelength times 1 + v/c. An ion with no lines given is one line, as before.Operatorsgainsindex_line,ratio,blendandscale_backproject_scene, the backprojection factor of each ion, which the first guess ofMartInverternow uses.image(),backproject()andsnr(), integrated along wavelength or not. A photon of the scene has the energy of the lines it emits.Checked
OptikaInstrumentto 3e-4;MartInvertertakes the same path to the same solution on the matrices as on the methods of the instrument, for both instruments. OnOptikaInstrumentthe mean chi squared differs within the tolerance of the existing test of lines.Notes:
wavelength_linelists each line once, andratio_lineplaces each line in its ion, so no ion needs placeholder lines. For ESIS that is 7 wavelengths and a table of 5 ions by 7 lines.scale_backproject_sceneis the old backprojection factor.🤖 Generated with Claude Code
https://claude.ai/code/session_01StcJvVHMXbjJmyFFwf4Pcn