Skip to main content

Pure-python miriad CLI wrapper.

Project description


This package wraps 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.



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


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

Project details

Release history Release notifications

History Node


This version
History Node


History Node


History Node


History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
mirpy-0.3.0.tar.gz (4.6 kB) Copy SHA256 hash SHA256 Source None May 20, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page