From 95687f5b6d978be2ae7d7441a67ee4c3a6a6adff Mon Sep 17 00:00:00 2001 From: d3v-null Date: Wed, 6 Nov 2024 08:18:20 +0800 Subject: [PATCH] update van vleck README --- README.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 39aea04..2130c8d 100644 --- a/README.md +++ b/README.md @@ -256,6 +256,7 @@ CORRECTION: --no-geometric-delay Do not perform geometric corrections --passband-gains Type of PFB passband filter gains correction to apply [default: auto] [possible values: none, cotter, jake, auto] + --van-vleck Apply Van Vleck corrections AVERAGING: --avg-freq-factor Average channels per averaged channel @@ -275,10 +276,66 @@ AOFLAGGER: --no-rfi Do not perform RFI Flagging with aoflagger ``` -Note: the aoflagged options are only available when the aoflagger feature is enabled. +Note: the aoflagger options are only available when the aoflagger feature is enabled. + +## Correction Details Operations are performed in the order described by the following sections. +```mermaid +flowchart TD; +classDef in fill:#2aa198; +classDef out fill:#d33682; +classDef file fill:#268bd2; +classDef proc fill:#b58900; +classDef decision fill:#cb4b16; + +metafits[/ metafits /]; class metafits file; +raw[/ raw data /]; class raw file; +prepUVFits[/ uvfits /]; class prepUVFits file; +prepMS[/ CASA Measurement Set /]; class prepMS file; +calSols[/"Calibration Solutions (.bin)"/]; class calSols file; +mwaf[/"flags"/]; class mwaf file; + +vv[["Van Vleck +(iff --van-vleck)"]]; class vv proc; +cableDel[["Cable Delays (unless +--no-cable-delay)"]]; class cableDel proc; +digGains[["Digital Gains (unless +--no-digital-gains)"]]; class digGains proc; +PFB[["PFB Passband +(--passband-gains)"]]; class PFB proc; +AOFlag[["AOFlagger (see +--aoflagger-strategy +and --no-rfi)"]]; class AOFlag proc; +applyCal[[ Apply Solutions ]]; class applyCal proc; +geometric[["Geometric Delays (unless +--no-geometric-delay)"]]; class geometric proc; +avg[["Averaging (see --avg-*)"]]; class avg proc; + +metafits -->|"--metafits (-m)"| vv +raw --> vv +vv --> cableDel --> digGains --> PFB --> AOFlag ---> geometric +AOFlag -->|"--flag-template (-f)"| mwaf +calSols -->|"--apply-di-cal"| applyCal +geometric --> applyCal --> avg +avg -->|"--uvfits-out (-u)"| prepUVFits +avg -->|"--ms-out (-M)"| prepMS +``` + +### Van Vleck Corrections + +Van Vleck corrections are applied to the visibilities to correct for the effects of quantization in +the legacy Correlator, resulting in a smoother bandpass, and a reduced false positive flag rate in AOFlagger. + +These corrections are computationally expensive, and not needed for most science cases. They are most applicable to Epoch of Reionization science, where a flat bandpass is desired. + +Birli's implementation borrows heavily from Pyxie Star's pyuvdata implementation described in [Van Vleck Memo A](https://github.com/EoRImaging/Memos/blob/main/PDFs/007_Van_Vleck_A.pdf), which is based on the formulation in [Benkevitch 2016](https://arxiv.org/pdf/1608.04367). + +The current implementation only accounts for the 4+4 bit quantization of the legacy correlator, and does not account for the 5+5 bit quantization of the RRI receiver. + +Birli solves the full integral with maximum precision, and does not use the Chebychev approximation described in the memo. + ### Cable Delay Corrections Cable delay correction involves adjusting visibility phases to correct for the differences in electrical length of the cable between each tile and it's receiver. @@ -379,7 +436,7 @@ When processing a set of coarse channels which are not contiguous in receiver ch will be added to the measurement set and uvfits filenames which indicates the coarse channel, or coarse channel range in that file. -### Comparison with Cotter +## Comparison with Cotter The following table shows how Birli options map onto Cotter options: