Coder Social home page Coder Social logo

cadctools's Introduction

cadctools

Client tools and utilities for using Canadian Astronomy Data Centre services

Developers Guide

Requires pip.

Installing Packages

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

Testing packages

Testing cadcutils

cd ./cadcutils
python setup.py test

Testing cadcdata

cd ./cadcdata
python setup.py test

Testing cadccutout

cd ./cadccutout
python setup.py test

Checkstyle

flake8 style checking is enforced on pull requests. Following commands should not report errors

flake8 cadcutils/cadcutils cadcdata/cadcdata cadcetrans/cadcetrans
cadccutout/cadccutout

Usage Example

In library mode

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

Direct Usage

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

Docker image

Rather than deploying a project environment, you could just use docker.

To use

  1. Install docker.

  2. Then run:

    docker build . -t cadc/cadctools
    docker run --name cadctools cadc/cadctools
    

cadctools's People

Contributors

andamian avatar at88mph avatar brianmajor avatar ellieb avatar emeraldtree24 avatar ijiraq avatar jburke-cadc avatar opencadc-admin avatar sharongoliath avatar yeunga avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.