Skip to content
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

savefits_residim does not work #212

Open
PaddyLeahy opened this issue Sep 7, 2023 · 4 comments
Open

savefits_residim does not work #212

PaddyLeahy opened this issue Sep 7, 2023 · 4 comments

Comments

@PaddyLeahy
Copy link

PaddyLeahy commented Sep 7, 2023

I set the savefits_residim option to True in process_image, but no such fits image is output. In the log file, this is not listed as a non-default input parameter (unlike savefits_rmsim, which is, and does produce an output image). I realize that I can use export_image to do this, but having the residual image generated automatically, in the appropriate subdirectory like the rms image, would be convenient!

@darafferty
Copy link
Collaborator

Thanks for reporting the problem. Indeed, the option was completely ignored. I've made a PR (#213) to fix it. The PR also adds an option (savefits_modelim) for saving the Gaussian model image, since that was an easy related change.

@PaddyLeahy
Copy link
Author

PaddyLeahy commented Sep 11, 2023 via email

@darafferty
Copy link
Collaborator

The total flux is calculated here: https://github.com/lofar-astron/PyBDSF/blob/master/bdsf/gausfit.py#L1043. There's a check just above (line 1021) that might be relevant for the issue you're seeing. It sets the size to the beam size in certain cases. But I don't see any obvious relation between what's done here and the value of ini_gausfit. However, the logic surrounding all that is quite convoluted so it may be related somehow. The deconvolution is done just after the calculation of the total flux in line 1053.

@PaddyLeahy
Copy link
Author

PaddyLeahy commented Sep 11, 2023 via email

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

No branches or pull requests

2 participants