Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Pure-python miriad CLI wrapper.

Project Description

Introduction

This package wraps miriad (http://www.atnf.csiro.au/computing/software/miriad/) commands into python functions. It also wraps the documentation for miriad tasks.

Note that one exception to the miriad conventions is the keyword/parameter ‘in’ which can’t be used in python. Use something like ‘In’, ‘IN’ or ‘_in’ instead.

Example

Simple

>>> from mirpy import miriad
>>> help(miriad.uvindex)
>>> print miriad.uvindex(vis='myvis.uv')

Advanced

Create filter function to turn miriad stdout text into something useful. This example is not really useful and just demonstrates the usage. It turns the miriad output string into a list of lines in the string and returns it. More useful examples would be turning some output into python values you can work with later.

>>> from mirpy import miriad
>>> def uvindex_filt(output):
...     return output.split('\n')
>>> # without filter
>>> print miriad.uvindex(vis='myvis.uv')
>>> # register filter function
>>> miriad.set_filer('uvindex', uvindex_filt)
>>> # with filter
>>> print miriad.uvindex(vis='myvis.uv')
Release History

Release History

This version
History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

trunk

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
mirpy-0.3.1.tar.gz (4.6 kB) Copy SHA256 Checksum SHA256 Source Jan 21, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting