-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yuhsuan/1277 fitting error #1294
Merged
Merged
Conversation
This file contains 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
YuHsuan-Hwang
requested review from
confluence,
pford,
markccchiang,
kswang1029 and
acdo2002
August 14, 2023 08:55
This was referenced Aug 14, 2023
confluence
approved these changes
Aug 14, 2023
markccchiang
approved these changes
Aug 15, 2023
pford
approved these changes
Aug 15, 2023
New changes:
|
pford
approved these changes
Aug 22, 2023
confluence
approved these changes
Aug 22, 2023
kswang1029
approved these changes
Aug 23, 2023
this is looking good. I have adjusted e2e tests accordingly. |
5 tasks
kswang1029
reviewed
Sep 1, 2023
src/ImageFitter/ImageFitter.cc
Outdated
pa_err = sqrt(4.0 * tmp * tmp / rho_square_3) * 180.0 / M_PI; | ||
|
||
if (_unit == "Jy/beam") { | ||
const double flux = 2 * M_PI * fwhm_x * fwhm_y * SQ_FWHM_TO_SIGMA * amp / _beam_size / _beam_size; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to divide a solid angle conversion factor as pi / 4.0 / ln(2.0) ~ 1.1330900354567985
flux = 2 * M_PI * fwhm_x * fwhm_y * SQ_FWHM_TO_SIGMA * amp / _beam_size / _beam_size / (M_PI / 4.0 / log(2.0))
acdo2002
approved these changes
Sep 1, 2023
|
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.
Description
Fixed image fitting error too small #1277 by implementing error calculations based on Condon (1997), which is also used by casa imfit.
Changed from unweighted fitting to weighted fitting with the information of image standard deviation.
Added calculation of integrated flux in the fitting result. This requires frontend branch Yuhsuan/fitting integrated flux carta-frontend#2229 and protobuf branch Yuhsuan/fitting integrated flux carta-protobuf#88.
How does this PR solve the issue? Give a brief summary.
and image std (of the entire image or regions)inFrame.FitImage
.ImageFitter.SolveSystem
.ImageFitter.SolveSystem
.ImageFitter.CalculateErrors
.Are there any companion PRs (frontend, protobuf)?
Is there anything else that testers should know (e.g. exactly how to reproduce the issue)?
ToDocode maintenance: add documentation inImageFitter.h
.Checklist
no changelog update needede2e test passing/ added corresponding fixno protobuf update needed