Skip to content

800 getsigref#991

Merged
teuben merged 28 commits intomainfrom
800-getsigref
Mar 11, 2026
Merged

800 getsigref#991
teuben merged 28 commits intomainfrom
800-getsigref

Conversation

@teuben
Copy link
Copy Markdown
Collaborator

@teuben teuben commented Jan 21, 2026

During a getsigref() the reference scan gets internally converted to a reference spectrum, and looses the exposure per integration, which is needed for the current way of computing the exposure time in PSScan(). This patch fixes this by artifically creating an exposure array for the ref equal to that of the sig.

@teuben teuben marked this pull request as draft January 21, 2026 20:51
@teuben
Copy link
Copy Markdown
Collaborator Author

teuben commented Jan 21, 2026

Code needs a check if it still works if the sig is multiple scans vs. the ref being one scan.

@teuben
Copy link
Copy Markdown
Collaborator Author

teuben commented Jan 24, 2026

Although checks passed, they are because the in several places the 1e-6 type threshold was increased to 1e-3. This needs to be understood.

The patch to compute the exposure time results in individual exposures (per integration) to be accurate to only 0.01 sec (out of 5 sec), but their sum is accurate to 1e-5.

@teuben
Copy link
Copy Markdown
Collaborator Author

teuben commented Feb 25, 2026

confirmed via the nodding notebook that radiometer is ok there. makes sense, since the exposure equations are effectively a simple getps().
There is a note that calseq does not get a good radiometer result.

@teuben teuben marked this pull request as ready for review March 6, 2026 16:06
@mpound mpound self-requested a review March 10, 2026 16:30
Comment thread src/dysh/fits/tests/test_gbtfitsload.py Outdated
Comment thread docs/source/reference/sdmath.rst Outdated
Comment thread docs/source/reference/sdmath.rst
Comment thread docs/source/reference/sdmath.rst Outdated
Copy link
Copy Markdown
Collaborator

@mpound mpound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks. Just deal with my comments and we are good to go.

@teuben teuben merged commit f96cf3b into main Mar 11, 2026
33 of 35 checks passed
@teuben teuben deleted the 800-getsigref branch March 11, 2026 13: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.

2 participants