Client tools and utilities for using Canadian Astronomy Data Centre services
Requires pip.
cd cadcutils && pip install -r ./dev_requirements.txt cd cadcdata && pip install -r ./dev_requirements.txt cd cadcetrans && pip install -r ./dev_requirements.txt cd cadccutout && pip install -r ./dev_requirements.txt
cd ./cadcutils python setup.py test
cd ./cadcdata python setup.py test
flake8 style checking is enforced on pull requests. Following commands should not report errors
flake8 cadcutils/cadcutils cadcdata/cadcdata cadcetrans/cadcetrans cadccutout/cadccutout
Write the following into a file named test.py
from cadcdata import CadcDataClient from cadcutils import net client = CadcDataClient(net.Subject()) print(client.get_file_info('GEMINI', '00AUG02_002'))
Then Run
python test.py
After installing the cadcdata package, run
cadc-data get GEMINI 00AUG02_002
This will download the fits file to your current directory.
To see more information do
cadc-data put --help cadc-data get --help cadc-data info --help
Rather than deploying a project environment, you could just use docker.
To use
Install docker.
Then run:
docker build . -t cadc/cadctools docker run --name cadctools cadc/cadctools