Skip to content

Fix BCAL normalization of first block#286

Open
bhawkins wants to merge 2 commits into
isce-framework:developfrom
bhawkins:fix_first_bcal
Open

Fix BCAL normalization of first block#286
bhawkins wants to merge 2 commits into
isce-framework:developfrom
bhawkins:fix_first_bcal

Conversation

@bhawkins

@bhawkins bhawkins commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

In the elevation antenna pattern code, the transmit path is characterized by the ratio of high-power amplifier calibration loop (HCAL) and bypass calibration loop (BCAL) measurements (normalized by the BCAL of the first channel). The HCAL and BCAL measurements are interleaved in time, so some logic is needed to associate the correct pairs of HCAL and BCAL measurements.

The existing code assumes that the first pulse is a BCAL measurement, which is typically true for the first observation in a data take. However, subsequent observations may not start with a BCAL. In those cases, a block of HCAL weights does not get properly normalized and the resulting antenna pattern is wrong. This PR handles the case by using the first BCAL to normalized the first set of HCAL pulses, even if that BCAL happens later in time.

@rad-eng-59 rad-eng-59 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, Thanks.
FYI, the first 200 ms (~ 500 pulses) of the first observation of a datatake have bad HCAL values which causes similar issue or even worse if not excluded from processing.

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