Skip to main content

A package to perform RFI flagging of radio interferometric data

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ankflag-3.0.6.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ankflag-3.0.6-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file ankflag-3.0.6.tar.gz.

File metadata

  • Download URL: ankflag-3.0.6.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for ankflag-3.0.6.tar.gz
Algorithm Hash digest
SHA256 5fac75e7e9624aecb51b69e97c49b67b78a820d9f8fc693f8f46b68b3dc35949
MD5 2c8f82743835aa573d3401801890ab7c
BLAKE2b-256 b5b6a54f53ac858c72e3a93e572630b73e3c2b52c95565f6014cbd08763d8a07

See more details on using hashes here.

File details

Details for the file ankflag-3.0.6-py3-none-any.whl.

File metadata

  • Download URL: ankflag-3.0.6-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for ankflag-3.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 78f94a3a98e525001ffbc20ac35da0bbc4ebb32ccdc38d6c337bc5d10e84b0a5
MD5 8b2908559de63e6fa2225bff9a00a7c5
BLAKE2b-256 e6acc7942389f13496b5dc14a24220c9d369f778dd9b0b980910e2344d1a2ec8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page