Skip to main content

CASA Next Generation Infrastructure Prototype

Project description

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

Installation

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 https://casa-pip.nrao.edu/repository/pypi-casa-release/simple casatools==6.0.0.27
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 https://casa-pip.nrao.edu/repository/pypi-casa-release/simple casatools==6.0.0.27
pip install cngi-prototype

Installation from Source

git clone https://github.com/casangi/cngi_prototype.git
cd cngi_prototype
python3 -m venv venv
source venv/bin/activate
pip install wheel
pip install -r requirements.txt
python setup.py install --root=.

Configure dask.distributed

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

export OMP_NUM_THREADS=1 
export MKL_NUM_THREADS=1
export OPENBLAS_NUM_THREADS=1 

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:

file:///path/to/cngi/cngi_prototype/docs/build/index.html

Usage

You can import things several different ways. For example:

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

or

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

or

>>> 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


Release history Release notifications | RSS feed

Download files

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

Source Distribution

cngi_prototype-0.0.63.tar.gz (84.1 kB view details)

Uploaded Source

File details

Details for the file cngi_prototype-0.0.63.tar.gz.

File metadata

  • Download URL: cngi_prototype-0.0.63.tar.gz
  • Upload date:
  • Size: 84.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.12

File hashes

Hashes for cngi_prototype-0.0.63.tar.gz
Algorithm Hash digest
SHA256 9215cd22a4426a781378e236276f7947b58a2321cdf289732151792e0120435e
MD5 e81806f8b49b22261242444447e9dc1b
BLAKE2b-256 f3112f7da6d252b7b4d2354853c202c5828b6c1b9ebae057f0835173d85b3143

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