Skip to main content

aNKflag Logo

aNKflag

An intelligent radio frequency interference (RFI) removal tool to work in multi-dimensions radio interferometric data.

Background

Radio interferometric observations are generally affected by terrestrial radio emission, known as radio frequency interference (RFI). aNKflag is an intelligent tool developed to detect and remove these RFIs both in time-frequency as well as in the Fourier domain, popularly known as uv-domain in radio interferometry.

  • aNKflag works on UVFITS files
  • Before flagging one needs to convert CASA measurement set to UVFITS
  • After flagging one needs to convert UVFITS to CASA measurement set and copy the flags to original measurement set.
  • These features are not provided in aNKflag, as these are readily available in CASA.
  • This python version uses precompiled and containersed sourcecode of aNKflag, so no need to worry about installing C/C++ libraries.

Documentation

aNKflag documentation is available at: ankflag.readthedocs.io

Quickstart

aNKflag is distributed on PyPI. To use it:

  1. Create conda environment with python 3

    conda create -n ankflag_env python=3.10
    conda activate ankflag_env
    
  2. Install aNKflag in conda environment

    pip install ankflag
    
  3. Initiate necessary metadata and containers

    run-ankflag init --datadir </full/path/to/data/directory>
    

    Contaniers will be stored in the data directory.

  4. Run aNKflag

    run-ankflag run </full/path/to/input/uvfits> </full/path/to/output/uvfits> --scratchdir </full/path/to/ankflag/workdir> --flagmode <uvbin/baseline> --npol <num_of_polarisation> --nthreads <num_of_cpu_threads> --target_type <target_type>
    

That's all. You run aNKflag for analysing flagging RFI. It will create a UVFITS file with output file location 🎉.

Acknowledgements

aNKflag is developed by Apurba Bera (ASTRON, NL) and Devojyoti Kansabanik (IAA-CSIC, Spain). If you use aNKflag for analysing your work, include the following statement in your paper

RFI flagging is perfomed using aNKflag.
  1. Cite aNKflag software in zenodo: https://doi.org/10.5281/zenodo.20568784

and cite the following papers.

  1. aNKflag paper: Kansabanik et al., ApJS 2023

License

This project is licensed under the MIT License.

Metadata

Release files for ankflag 3.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ankflag 3.0.7
File Size Uploaded
ankflag-3.0.7.tar.gz 20.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ankflag 3.0.7
File Interpreter ABI Platform
ankflag-3.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 42.9 kB

Release files / ankflag-3.0.7.tar.gz

Download URL ankflag-3.0.7.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d0ddcdd615751636e2e53d2083ae498ff1badd0739ba511f303bffa28d804642
BLAKE2b-256 checksum
How to use checksums
a4199beecc5dd2b3c87ca3b0035c5bd9e1ac9eb2e2e1fe93f7bd5d43775dc9aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / ankflag-3.0.7-py3-none-any.whl

Download URL ankflag-3.0.7-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c991a23598c5caee1416854bf3fe4abafbf5501cc89fadd730dcd7deba6a87bb
BLAKE2b-256 checksum
How to use checksums
72c121903348cea2f970cba0bcfbc2386daad1f4381e72f3c5e75a926843e54e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release history Release notifications | RSS feed

This release

3.0.7 This release

2 release files

3.0.6

2 release files

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page