Issue with non-spherical harmonic fit to antenna response
Closed this issue · 4 comments
cdilullo commented
For some reason, when lmax=0 for nec.fit_antenna_response(), the antenna gain response at az=360 equals 0.
jaycedowell commented
Isn’t that what should happen?
… On Jul 12, 2023, at 12:00 PM, Chris DiLullo ***@***.***> wrote:
For some reason, when lmax=0 for nec.fit_antenna_response(), the antenna gain response at az=360 equals 0.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
cdilullo commented
@jaycedowell I meant to say "lmax is None". I.e. when I try fitting a polynomial in frequency for each point on the sky without spherical harmonic decomposition, the resulting pattern has a strip of zeros at az=360 (but not az=0). I'd expect them to match obviously.
jaycedowell commented
Hrm. Missing modulus operator on the azimuth somewhere?
… On Jul 12, 2023, at 12:37 PM, Chris DiLullo ***@***.***> wrote:
@jaycedowell I meant to say "lmax is None". I.e. when I try fitting a polynomial in frequency for each point on the sky without spherical harmonic decomposition, the resulting pattern has a strip of zeros at az=360 (but not az=0). I'd expect them to match obviously.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
cdilullo commented
Ah, didn't realize the NEC models stopped at az=359. Fixed the issue by copying the response for az=0 to az=360.