Skip to main content

CASA Next Generation Infrastructure Prototype

Project description

Installation, setup and development rules for the CASA Next Generation Infrastructure


Conversion functions depend on casatools from CASA 6 which is currently compatible with Python 3.6 only. CASA 6 also requires FORTRAN libraries be installed in the OS. These are not included in the dependency list so that the rest of CNGI functionality may be used without these constraints.

In the future, the conversion module may be moved outside of the CNGI package and distributed separately.

Pip Installation

python3 -m venv cngi
source cngi/bin/activate
#(maybe) sudo apt-get install libgfortran3
pip install --index-url casatools==
pip install cngi-prototype

Conda Installation

conda create -n cngi python=3.6
conda activate cngi
#(maybe) sudo apt-get install libgfortran3
pip install --index-url casatools==
pip install cngi-prototype

Installation from Source

git clone
cd cngi_prototype
python3 -m venv venv
source venv/bin/activate
pip install wheel
pip install -r requirements.txt
python install --root=.

Configure dask.distributed

To avoid thread collisions, when using the Dask.distributed Client, set the following environment variables.


Building Documentation from Source

Follow steps to install cngi from source. Then navigate to the docs folder and execute the following:

sphinx-build -b html . ./build

View the documentation in your browser by navigating to:



You can import things several different ways. For example:

>>> from cngi import dio
>>> xds = dio.read_image(...)


>>> from cngi.dio import read_image
>>> xds = read_image(...)


>>> import cngi.dio as cdio
>>> xds = cdio.read_image(...)

Throughout the documentation we use the variable name xds to refer to Xarray DataSets.
xda may be used to refer to Xarray DataArrays. This is a "loose" convention only.

Project details

Download files

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

Files for cngi-prototype, version 0.0.72
Filename, size File type Python version Upload date Hashes
Filename, size cngi_prototype-0.0.72.tar.gz (128.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page