Skip to content

Commit

Permalink
fix auto rfi category name and defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdillon committed Apr 21, 2024
1 parent b9d8f44 commit 96893b1
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions notebooks/full_day_antenna_flagging.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@
"auto_slope_suspect = (float(os.environ.get(\"AUTO_SLOPE_SUSPECT_LOW\", -0.6)), float(os.environ.get(\"AUTO_SLOPE_SUSPECT_HIGH\", 0.6)))\n",
"\n",
"# bounds on autocorrelation RFI\n",
"auto_rfi_good = (0, float(os.environ.get(\"AUTO_RFI_GOOD\", 0.015)))\n",
"auto_rfi_suspect = (0, float(os.environ.get(\"AUTO_RFI_SUSPECT\", 0.03)))\n",
"auto_rfi_good = (0, float(os.environ.get(\"AUTO_RFI_GOOD\", 1.5)))\n",
"auto_rfi_suspect = (0, float(os.environ.get(\"AUTO_RFI_SUSPECT\", 2.0)))\n",
"\n",
"# bounds on autocorrelation shape\n",
"auto_shape_good = (0, float(os.environ.get(\"AUTO_SHAPE_GOOD\", 0.1)))\n",
Expand Down Expand Up @@ -332,7 +332,7 @@
"fh.summarize('removing non-correlating antennas')\n",
"\n",
"# STEP 6: FLAG ON AUTOCORRELATIONS\n",
"for category, ok_range, max_flag_frac in zip(['Autocorr Power', 'Autocorr Shape', 'Autocorr Slope', 'RFI in Autos'],\n",
"for category, ok_range, max_flag_frac in zip(['Autocorr Power', 'Autocorr Shape', 'Autocorr Slope', 'Auto RFI RMS'],\n",
" [auto_power_suspect, auto_shape_good, auto_slope_good, auto_rfi_good],\n",
" [AUTO_POWER_MAX_FLAG_FRAC, AUTO_SHAPE_MAX_FLAG_FRAC, AUTO_SLOPE_MAX_FLAG_FRAC, AUTO_RFI_MAX_FLAG_FRAC]):\n",
" for ap_str in ap_strs:\n",
Expand Down Expand Up @@ -397,9 +397,7 @@
"cell_type": "code",
"execution_count": null,
"id": "3e4b536a",
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"def flagging_board():\n",
Expand Down Expand Up @@ -435,9 +433,7 @@
"cell_type": "code",
"execution_count": null,
"id": "fde60694",
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"flagging_board()"
Expand Down Expand Up @@ -622,9 +618,7 @@
"cell_type": "code",
"execution_count": null,
"id": "90dd19ca",
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"per_antenna_flag_harmonization_plots()"
Expand Down Expand Up @@ -721,7 +715,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.10.12"
},
"toc": {
"base_numbering": 1,
Expand Down

0 comments on commit 96893b1

Please sign in to comment.