cdilullo/beam_simulator

Issue with non-spherical harmonic fit to antenna response

Closed this issue · 4 comments

For some reason, when lmax=0 for nec.fit_antenna_response(), the antenna gain response at az=360 equals 0.

@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.

Ah, didn't realize the NEC models stopped at az=359. Fixed the issue by copying the response for az=0 to az=360.