Skip to main content

Python module to access Measurement Sets' quality statistics produced by aoflagger, aoquality or DPPP.

Project description

pyaoquality

Python module to access Measurement Sets' quality statistics produced by aoflagger, aoquality or DPPP.

Installation

pyaoquality can be installed via pip:

$ pip install aoquality

and requires Python 3.6.0 or higher.

Usage

Example to retrieve baseline statistics:

aoq = aoquality.AOQualityBaselineStat(ms_file)

# plot SNR as function of baseline length:
plt.plot(aoq.blenght, aoq.SNR)

# plot SNR as function of first antenna:
plt.plot(aoq.ant1, aoq.SNR)

To retrieve time statistics:

aot = aoquality.AOQualityTimeStat(ms_file)

# plot RFI percentage as function of time:
plt.plot(aot.time, aot.RFIPercentage)

To retrieve frequency statistics:

aof = aoquality.AOQualityFrequencyStat(ms_file)

# plot Std as function of frequencies:
plt.plot(aof.freqs, aof.Std)

Command line tool

There is also a command line tool, aostats, which usage is as follow:

Usage: aostats plot [OPTIONS] MS_FILES... [Mean|Std|DStd|Count|DCount|Sum|DSum
                    |DSumP2|Variance|DVariance|SNR|RFICount|RFIPercentage]

  Plot Statistics from AO Quality Tables

  MS_FILES: Input MS files STAT_NAME: Statistic Name

Options:
  -o, --out_prefix TEXT    Prefix to the output filename  [default: stat]
  -p, --pol INTEGER RANGE  Polarization index: 0->XX, 1->XY, 2->YX, 3->YY
                           [default: 0]

  --log                    Plot in log scale
  --vmin FLOAT             Minimum value
  --vmax FLOAT             Maximum value
  --name TEXT              Title of the plot
  --help                   Show this message and exit.

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

aoquality-0.2.6.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

aoquality-0.2.6-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file aoquality-0.2.6.tar.gz.

File metadata

  • Download URL: aoquality-0.2.6.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.11.0-9-generic

File hashes

Hashes for aoquality-0.2.6.tar.gz
Algorithm Hash digest
SHA256 e0e35372d9145d8122889b2879203a7f14fe952a28a54ffc520ff4d8c7ccc283
MD5 c806abf1b7eb55a46d1bea147234b65d
BLAKE2b-256 133923c7e1d8de99ef73ea0d4f1f554e86ee82cfd7e3fc220e03795ccb7be168

See more details on using hashes here.

File details

Details for the file aoquality-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: aoquality-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.11.0-9-generic

File hashes

Hashes for aoquality-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a35ade54f55de9be57f17631507a719584730860f5f7b1fbbca4fbdd740ad5a7
MD5 ff0515294f2bc2bae47f13188a5cf454
BLAKE2b-256 bbde2e1bec48a613083269eae37f7257e2694637d2072fa56036a660029a6a0f

See more details on using hashes here.

Supported by

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