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

Spectral Fitting Calibrators #5

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft

Spectral Fitting Calibrators #5

wants to merge 14 commits into from

Conversation

jwpetley
Copy link
Contributor

@jwpetley jwpetley commented Feb 3, 2025

Initial commit adds some ignores, adds Frits' script and implements it so that where it works (lots of try, except!) a plot will be made for every source in delay_calibrators.csv.

@jwpetley jwpetley changed the title Initial fitting work Spectral Fitting Calibrators Feb 3, 2025
@jwpetley
Copy link
Contributor Author

jwpetley commented Feb 3, 2025

Some example plots from Frits' script.

If you want to test the reference command is: python3 plot_field.py --RA=193.7444701 --DEC=44.1610650

spectrum_193 747_44 160_NED

spectrum_193 747_44 160

@jwpetley
Copy link
Contributor Author

jwpetley commented Feb 4, 2025

Nice work. I ran it on a random pointing and it worked for me.

I have put a couple of comments above that either of us can address tomorrow.

plot_field.py Outdated
@@ -1171,10 +1171,12 @@ def generate_catalogues(
# Empty columns for fitting parameters
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Part of the error mentioned in the slack comes from this I think. This is inside the else statement that checks if LoTSS coverage was available for the lbcs catalogue. If we move this section to outside the if-else (maybe line 1239) immediately before we grab the spectral information then I think it should work

@TomHigginson
Copy link

Should include a reduced chi square (or state the DoF, I think all fits will have at least 3 data points).

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