pyuvdata v3
pyuvdata v3: an interface for astronomical interferometric data sets in Python - Published in JOSS (2025)
Science Score: 95.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 7 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
✓Committers with academic emails
59 of 92 committers (64.1%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
Keywords from Contributors
Repository
A pythonic interface for radio astronomy interferometry data (uvfits, measurement sets, uvh5, others)
Basic Info
- Host: GitHub
- Owner: RadioAstronomySoftwareGroup
- License: bsd-2-clause
- Language: Python
- Default Branch: main
- Homepage: https://pyuvdata.readthedocs.io/en/latest/index.html
- Size: 138 MB
Statistics
- Stars: 91
- Watchers: 28
- Forks: 32
- Open Issues: 95
- Releases: 47
Topics
Metadata Files
README.md
pyuvdata
pyuvdata defines a pythonic interface to interferometric data sets. Currently pyuvdata supports reading and writing of miriad, uvfits, CASA measurement sets and uvh5 files and reading of FHD (Fast Holographic Deconvolution) visibility save files, SMA Mir files and MWA correlator FITS files.
Documentation of the API, conventions used throughout the package, and a tutorial is hosted on ReadTheDocs.
Motivation
The main goals are:
- To provide a high quality, well documented path to convert between file formats.
- Support the direct use of interferometric datasets from python with minimal software.
- Provide precise data definitions and convention details via both human readable code and high quality documentation.
Package Details
pyuvdata has four major user classes:
- UVData: supports interferometric data (visibilities) and associated metadata
- UVCal: supports interferometric calibration solutions (antenna-based) and associated metadata.
- UVBeam: supports primary beams (E-field or power) and associated metadata. A number of analytic beam objects are also available and the BeamInterface object serves as a unified interface for UVBeam and analytic beam objects.
- UVFlag: A class to handle the manipulation and combination of flags for data sets. Also can convert raw data quality metrics into flags using thresholding. (This object is somewhat new and experimental. Consider it to be a beta version)
UVData File standard notes
- Miriad has been thoroughly tested with aipy-style Miriad files and minimally tested with ATCA files. Reading/writing Miriad files is not supported on Windows.
- UVFITS conforms to AIPS memo 117 (as of March 2020). It is tested against
FHD, CASA, and AIPS. However AIPS is limited to <80 antennas and CASA's ``importuvfits``
task does not seem to support >255 antennas. Because of this and other limitations
to CASA's
importuvfitstask, we reccommend that users planning to work in CASA avoid usingimportuvfitsand use the measurement set writer instead. - CASA measurement sets, primarily conforming to
CASA Memo 229, with some elements taken
from the proposed v3.0 format documented in
CASA Memo 264. Measurement
sets are tested against datasets from VLA, MWA (filled via
cotter), ALMA, and SMA (filled using theimportuvfitstask). Extensive loopback testing has been done to verify that pyuvdata written measurement sets are compatible with CASA. - UVH5 is an HDF5-based file format defined by the HERA collaboration, details in the uvh5 memo. Note that this is a somewhat new format, so it may evolve a bit but we will strive to make future versions backwards compatible with the current format. It is probably not compatible with other interferometric HDF5 files defined by other groups.
- FHD (read-only support, tested against MWA and PAPER data)
- MIR (read-only support, though experimental write functions are available, tested against SMA data)
- MWA correlator FITS files (read-only support, tested against Cotter outputs and FHD)
UVCal file formats
- CalH5: a new an HDF5-based file format defined in pyuvdata, details in the calh5 memo. Note that this format is a somewhat new format, so it may evolve a bit but we will strive to make future versions backwards compatible with the current format.
- Measurement Set calibration files (read and write, gains/delay/bandpass supported, beta version). Tested against a limited set of SMA, LWA, and VLA calibration files generated in CASA.
- CalFITS: a custom format defined in pyuvdata, details in the calfits memo. Note that this format does not support all possible UVCal objects, so we prefer CalH5 which has full support for all variations of UVCal objects.
- FHD calibration files (read-only support)
UVBeam file formats
- BeamFITS: a custom format defined in pyuvdata that supports both regularly gridded beams and beams on a HEALPix grid for both E-field and power beams, details in the beamfits memo.
- CST beam text files (read only support) with a defined yaml file format for metadata, details here: cst settings file
- FEKO beam ffe files (read only support)
- MWA Beams (read only support)
Known Issues and Planned Improvements
- Incorporating numba to alleviate bottlenecks and to replace some existing cython extensions as appropriate.
See our issue log for a full list.
Community Guidelines
Contributions to this package to add new file formats or address any of the issues in the issue log are very welcome, as are bug reports and feature requests. Please see our guide on contributing
Telescopes
pyuvdata has been used with data from the following telescopes. If you use it on data from a telescope we don't have listed here please let us know how it went via an issue! We would like to make pyuvdata generally useful to the community for as many telescopes as possible.
- MWA
- HERA
- PAPER
- LWA
- ALMA
- VLA
- ATCA
- SMA
- ATA
- VLBA
Versioning
We use a generation.major.minor version number format. We use the generation
number for very significant improvements or major rewrites, the major number
to indicate substantial package changes (intended to be released every 3-4 months)
and the minor number to release smaller incremental updates (intended to be
released approximately monthly and which usually do not include breaking API
changes). We do our best to provide a significant period (usually 2 major
generations) of deprecation warnings for all breaking changes to the API.
We track all changes in our changelog.
History
pyuvdata was originally developed in the low frequency 21cm community to support the development of and interchange of data between calibration and foreground subtraction pipelines. Particular focus has been paid to supporting drift and phased array modes.
Citation
Please cite both of our JOSS papers:
Keating et al., (2025). pyuvdata v3: an interface for astronomical interferometric data sets in Python. Journal of Open Source Software, 10(109), 7482, https://doi.org/10.21105/joss.07482 [ADS Link]
Hazelton et al, (2017), pyuvdata: an interface for astronomical interferometeric datasets in python, Journal of Open Source Software, 2(10), 140, doi:10.21105/joss.00140 [ADS Link]
Installation
Simple installation via conda is available for users, developers should follow the directions under Developer Installation below.
For simple installation, the latest stable version is available via conda
(preferred: conda install -c conda-forge pyuvdata) or pip (pip install pyuvdata).
There are some optional dependencies that are required for specific functionality, which will not be installed automatically by conda or pip. See Dependencies for details on installing optional dependencies.
Dependencies
Required:
- astropy >= 6.0
- docstring_parser>=0.15
- h5py >= 3.7
- numba >= 0.57.0
- numpy >= 1.23
- pyerfa >= 2.0.1.1
- python >= 3.11
- pyyaml >= 5.4.1
- scipy >= 1.9
- setuptools_scm >= 8.1
Optional:
- astropy-healpix >= 1.0.2 (for working with beams in HEALPix formats)
- astroquery >= 0.4.4 (for enabling phasing to ephemeris objects using JPL-Horizons)
- hdf5plugin >= 3.3.1 (for enabling bitshuffle and other hdf5 compression filters in uvh5 files)
- lunarsky >=0.2.5 (for working with simulated datasets for lunar telescopes)
- matplotlib (for making plots in the tutorials)
- novas and novas_de405 (for using the NOVAS library for astrometry)
- pooch >= 1.8 (for downloading test data for tutorials)
- python-casacore >= 3.5.2 (for working with CASA measurement sets)
The numpy and astropy versions are important, so make sure these are up to date.
We suggest using conda to install all the dependencies. If you want to install
python-casacore and astropy-healpix, you'll need to add conda-forge as a channel
(conda config --add channels conda-forge).
If you do not want to use conda, the packages are also available on PyPI
(python-casacore may require more effort, see details for that package below).
You can install the optional dependencies via pip by specifying an option
when you install pyuvdata, as in pip install pyuvdata[healpix]
which will install all the required packages for using the HEALPix functionality
in pyuvdata. The options that can be passed in this way are:
astroquerycasahdf5_compressionhealpixlunarnovasalltutorialtestdocdev
The first set (astroquery, casa, hdf5_compression, healpix, lunar,
and novas) enable various specific functionality while all will install
all of the above to enable all functionality. The last three (test, doc
and dev) include everything installed with all plus packages for testing
and building the docs which may be useful for developers of pyuvdata.
Installing python-casacore
python-casacore requires the casacore c++ libraries. It can be installed easily
using conda (python-casacore on conda-forge).
If you do not want to use conda, the casacore c++ libraries are available for ubuntu through the kern suite. On OSX, casacore is available through the ska-sa brew tap. The python-casacore library (with manual install instructions) is available at https://github.com/casacore/python-casacore
Developer Installation
Clone the repository using
git clone https://github.com/RadioAstronomySoftwareGroup/pyuvdata.git
Navigate into the pyuvdata directory and run pip install .
(note that python setup.py install does not work).
Note that this will attempt to automatically install any missing dependencies.
If you use conda or another package manager you might prefer to first install
the dependencies as described in Dependencies.
To install without dependencies, run pip install --no-deps .
To compile the binary extension modules such that you can successfully run
import pyuvdata from the top-level directory of your Git checkout, run:
python setup.py build_ext --inplace
If you want to do development on pyuvdata, in addition to the other dependencies you will need the following packages:
- pooch >= 1.8
- pytest >= 8.2
- pytest-cases >= 3.9.1
- pytest-cov
- cython == 3.0
- coverage
- pre-commit
- matplotlib
- sphinx
- pypandoc
We manage our test data using pooch, which will download the file the first time
it's needed and save it in a cache folder, subsequent calls to fetch that data
will not re-download it. The test data are hosted in the
RASG datasets repo,
organized by data type and telescope. In the tests this data is downloaded and
cached using pooch via the pyuvdata.datasets.fetch_data function. For more
details and directions on adding test data see the
developer docs
One other package, pytest-xdist, is not required, but can be used to speed up running
the test suite by running tests in parallel. To use it call pytest with the
-n auto option.
One way to ensure you have all the needed packages is to use the included
environment.yaml file to create a new environment that will
contain all the optional dependencies along with dependencies required for
testing and development (conda env create -f environment.yaml).
Alternatively, you can specify test, doc, or dev when installing pyuvdata
(as in pip install pyuvdata[dev]) to install the packages needed for testing
(including coverage and linting) and documentation development;
dev includes everything in test and doc.
To use pre-commit to prevent committing code that does not follow our style, you'll
need to run pre-commit install in the top level pyuvdata directory.
Tests
Uses the pytest package to execute test suite.
From the source pyuvdata directory run pytest or python -m pytest.
Testing of UVFlag module requires the pytest-cases plug-in.
API
pyuvdata is organized around objects that contain all the data and metadata required to represent and work with interferometric data, calibration solutions, flags, antenna beams and telescope layouts. Each object has the data and metadata as attributes along with many useful methods for importing and exporting files and manipulating and transforming the data in useful ways. Please see our extensive documentation on ReadTheDocs for tutorials and complete API details.
Maintainers
pyuvdata is maintained by the RASG Managers, which currently include:
- Adam Beardsley (Winona State University)
- Bryna Hazelton (University of Washington)
- Garrett "Karto" Keating (Smithsonian Astrophysical Observatory)
- Daniel Jacobs (Arizona State University)
- Matt Kolopanis (Arizona State University)
- Paul La Plante (University of Nevada, Las Vegas)
- Jonathan Pober (Brown University)
Please use the channels discussed in the guide on contributing for code-related discussions. You can contact us privately if needed at rasgmanagers@gmail.com.
Acknowledgments
Support for pyuvdata was provided by NSF awards #1835421 and #1835120.
Owner
- Name: Radio Astronomy Software Group
- Login: RadioAstronomySoftwareGroup
- Kind: organization
- Email: rasgmanagers@gmail.com
- Website: https://radioastronomysoftwaregroup.github.io
- Repositories: 5
- Profile: https://github.com/RadioAstronomySoftwareGroup
Foundational software tools for radio astronomy
JOSS Publication
pyuvdata v3: an interface for astronomical interferometric data sets in Python
Authors
eScience Institute, University of Washington, USA, Physics Department, University of Washington, USA
Kavli Institute for Astrophysics and Space Research, Massachusetts Institute of Technology, USA
Physics Department, University of Washington, USA
Tags
radio astronomy UVFITS MIRIADGitHub Events
Total
- Create event: 80
- Commit comment event: 24
- Release event: 6
- Issues event: 49
- Watch event: 9
- Delete event: 73
- Issue comment event: 167
- Push event: 454
- Pull request event: 154
- Pull request review event: 360
- Pull request review comment event: 227
- Fork event: 5
Last Year
- Create event: 80
- Commit comment event: 24
- Release event: 6
- Issues event: 49
- Watch event: 9
- Delete event: 73
- Issue comment event: 167
- Push event: 454
- Pull request event: 154
- Pull request review event: 360
- Pull request review comment event: 227
- Fork event: 5
Committers
Last synced: 5 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Bryna Hazelton | b****n@g****m | 2,723 |
| Garrett 'Karto' Keating | g****g@c****u | 944 |
| Matthew Kolopanis | M****s@g****m | 609 |
| Paul La Plante | p****t@s****u | 395 |
| Adam Beardsley | a****y@g****m | 274 |
| Steven Murray | s****y@a****u | 247 |
| pyxieloustar | p****r@g****m | 171 |
| Nicholas Kern | n****n@b****u | 159 |
| Adam Lanman | a****n@b****u | 155 |
| pre-commit-ci[bot] | 6****] | 113 |
| Jonathan Pober | j****r@g****m | 77 |
| Mike Wilensky | m****8@u****u | 75 |
| Zaki Ali | z****8@g****m | 65 |
| Danny Jacobs | d****s@a****u | 57 |
| Aaron Ewall-Wice | a****w@m****u | 51 |
| Josh Dillon | j****n@b****u | 36 |
| e-koch | k****w@g****m | 35 |
| Peter Williams | p****r@n****x | 34 |
| Danny Price | d****e@s****t | 33 |
| Dara Storer | d****r@g****u | 25 |
| nmahesh1412 | n****4@a****u | 25 |
| WSK | U****1@W****l | 24 |
| Theodora Kunicki | t****i@b****u | 24 |
| Christopher Moriarty | c****y@c****u | 23 |
| radonnachie | c****e@r****a | 20 |
| Danny Price | d****n@t****m | 19 |
| Jacob Burba | j****a@a****u | 18 |
| Tyler Cox | t****x@b****u | 17 |
| nmahesh1412 | 3****2 | 14 |
| Ruby Byrne | r****e@u****u | 14 |
| and 62 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 144
- Total pull requests: 453
- Average time to close issues: over 1 year
- Average time to close pull requests: 16 days
- Total issue authors: 31
- Total pull request authors: 22
- Average comments per issue: 1.2
- Average comments per pull request: 2.07
- Merged pull requests: 403
- Bot issues: 0
- Bot pull requests: 115
Past Year
- Issues: 33
- Pull requests: 179
- Average time to close issues: 8 days
- Average time to close pull requests: 7 days
- Issue authors: 13
- Pull request authors: 13
- Average comments per issue: 0.36
- Average comments per pull request: 1.68
- Merged pull requests: 156
- Bot issues: 0
- Bot pull requests: 78
Top Authors
Issue Authors
- bhazelton (48)
- jpober (20)
- mkolopanis (14)
- kartographer (11)
- steven-murray (8)
- telegraphic (6)
- rlbyrne (4)
- theo-kunicki (3)
- nicholebarry (2)
- aewallwi (2)
- nfcarl (2)
- d3v-null (2)
- radonnachie (2)
- jsdillon (2)
- ptiede (2)
Pull Request Authors
- bhazelton (175)
- pre-commit-ci[bot] (116)
- kartographer (61)
- steven-murray (34)
- telegraphic (13)
- mkolopanis (13)
- plaplant (9)
- radonnachie (7)
- PyxieLouStar (4)
- tyler-a-cox (4)
- jpober (3)
- warrickball (2)
- nmahesh1412 (2)
- baron-de-montblanc (2)
- burdorfmitchell (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- pypi 4,447 last-month
-
Total dependent packages: 12
(may contain duplicates) -
Total dependent repositories: 18
(may contain duplicates) - Total versions: 90
- Total maintainers: 1
pypi.org: pyuvdata
A pythonic interface for radio astronomy interferometry data
- Documentation: https://pyuvdata.readthedocs.io
- License: BSD License
-
Latest release: 3.2.3
published 5 months ago
Rankings
Maintainers (1)
conda-forge.org: pyuvdata
- Homepage: https://github.com/RadioAstronomySoftwareGroup/pyuvdata
- License: BSD-2-Clause
-
Latest release: 2.2.10
published about 3 years ago
Rankings
Dependencies
- actions/checkout main composite
- codecov/codecov-action v2.0.2 composite
- conda-incubator/setup-miniconda v2 composite
- actions/checkout main composite
- actions/download-artifact v3 composite
- actions/upload-artifact v3 composite
- pypa/cibuildwheel v2.11.2 composite
- pypa/gh-action-pypi-publish v1.5.0 composite
- actions/checkout master composite
- codecov/codecov-action v2.0.2 composite
- conda-incubator/setup-miniconda v2 composite
- sphinx >=1.3
- sphinx_rtd_theme ==0.5.2
- coverage * test
- packaging * test
- pytest >=6.2,<8.0 test
- pytest-cases >=3.6.9 test
- pytest-cov * test
- lunarsky >=0.2.5
- novas *
- novas_de405 *