Skip to main content

Simple method for flagging UWL data.

Project description

atflagger

A simple flagger for continuum UWL data. Flag persistent RFI first, then run this auto-flagger.

Installation

Installing requires pip and python3 (3.8 and up).

Stable version:

pip install atflagger

Latest version:

pip install git+https://github.com/AlecThomson/atflagger

Usage

❯ atflagger -h
usage: atflagger [-h] [-i] [-b BEAM] [-s SIGMA] [-n N_WINDOWS] [-w] [-r REPORT] [-c CORES] [-t THREADS_PER_WORKER] filenames [filenames ...]

atflagger - Automatic flagging of UWL data. This flagger divides each subband into a number of windows, and then uses sigma clipping to remove outliers. The number of windows is set by the 'n-windows' argument, and the number of sigma is set by the 'sigma' argument. Parallelism is handled by dask.distributed. The 'cores' argument sets the number of
Dask workers, and 'threads-per-worker' sets the number of threads. See https://docs.dask.org/en/stable/deploying-python.html#reference for more information.

positional arguments:
  filenames             Input SDHDF file(s)

optional arguments:
  -h, --help            show this help message and exit
  -i, --inplace         Update flags in-place (default: create new file)
  -b BEAM, --beam BEAM  Beam label
  -s SIGMA, --sigma SIGMA
                        Sigma clipping threshold
  -n N_WINDOWS, --n-windows N_WINDOWS
                        Number of windows to use in box filter
  -w, --use-weights     Use weights table instead of flag table
  -r REPORT, --report REPORT
                        Optionally save the Dask (html) report to a file
  -c CORES, --cores CORES
                        Number of workers to use (default: Dask automatic configuration)
  -t THREADS_PER_WORKER, --threads-per-worker THREADS_PER_WORKER
                        Number of threads per worker (default: Dask automatic configuration)

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

atflagger-0.4.3.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

atflagger-0.4.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file atflagger-0.4.3.tar.gz.

File metadata

  • Download URL: atflagger-0.4.3.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.13 Darwin/20.6.0

File hashes

Hashes for atflagger-0.4.3.tar.gz
Algorithm Hash digest
SHA256 a80ae8c6bb5145327e0f359ad34d947aef24f4de3384af6e8a61ad73846deb63
MD5 b671d4d430f7c68a31841a096bb51d1f
BLAKE2b-256 d51b0b4d5b6ac95fe36a80b8063957f3bb8f627198d308d2c07b5470803319cd

See more details on using hashes here.

File details

Details for the file atflagger-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: atflagger-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.13 Darwin/20.6.0

File hashes

Hashes for atflagger-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e900cb7d3ed1b1536b284ef13fa206a86b1270652437041774e1db1e8967580a
MD5 1550050145283b23893cd30fcc96483b
BLAKE2b-256 8d1074bbd9d898e80e0e0a7bb120037582a68e709c9a5781d8949c2ee77e581b

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