Skip to content

Antenna gain translation#213

Merged
marcomuzio merged 23 commits intomasterfrom
antenna_gain_translation
Feb 17, 2026
Merged

Antenna gain translation#213
marcomuzio merged 23 commits intomasterfrom
antenna_gain_translation

Conversation

@marcomuzio
Copy link
Contributor

@marcomuzio marcomuzio commented Feb 12, 2026

This PR adds better handling of the translation of antenna gain measurements taken in one medium into another (probably something icy??).

If an antenna gain file does not have an index of refraction, no scaling of the gain argument occurs.

This PR also removes dependence on a hardcoded freq_step_max which sets the frequency resolution. Resolution is now determined dynamically (and so a lot of variables have been updated from arrays to vectors).

This change resulted in a change to the Veff tests, since the normalization of the effective height changed (due to the index in its calculation changed from n_local to n_eff) and because the frequency resolution of the antenna models changed.

Testing summary (as of commit 313ad80)
A3 veff test: passed ✅
birefringence veff test: passed ✅
pa veff test: passed ✅
pulser veff test: passed ✅

Copy link
Member

@AlanSalcedo AlanSalcedo left a comment

Choose a reason for hiding this comment

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

Looks good, pending determining what n to use in the normalization of effective height.

Copy link
Collaborator

@clark2668 clark2668 left a comment

Choose a reason for hiding this comment

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

Very minor comments

@clark2668
Copy link
Collaborator

Can we get some plots of the effective height at a couple different zenith angles comparing the measured to the shifted, just to sanity check that all looks as expected?

Copy link
Collaborator

@clark2668 clark2668 left a comment

Choose a reason for hiding this comment

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

Some relatively minor comments.

Copy link
Collaborator

Choose a reason for hiding this comment

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

For example, a plot of the heff for this event that gets tipped over into passing might be a good one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let me see if I can manage a plot at all first. This isn't easy to get out of AraSim.

@marcomuzio
Copy link
Contributor Author

Can we get some plots of the effective height at a couple different zenith angles comparing the measured to the shifted, just to sanity check that all looks as expected?

Okay that was painful to get lol. Here's a plot for some random channel.

Screenshot 2026-02-17 at 1 42 04 PM

@clark2668
Copy link
Collaborator

That plot is helpful to see. So it does shift down as expected. And goes up. So this is roughly what we would have anticipated. Okay, thanks.

@marcomuzio
Copy link
Contributor Author

Okay @clark2668 I'm rerunning the veff tests, but I think I've responded to all your comments.

@clark2668
Copy link
Collaborator

Okie dokes! Thanks for suffering my review!

@marcomuzio
Copy link
Contributor Author

Okay all tests have passed. Merging now.

@marcomuzio marcomuzio merged commit f87c9a1 into master Feb 17, 2026
0 of 4 checks passed
@marcomuzio marcomuzio deleted the antenna_gain_translation branch February 17, 2026 20:01
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.

3 participants