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')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mirpy-0.3.1.tar.gz.
File metadata
- Download URL: mirpy-0.3.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e392ef1b9670678b441a3d5c766ad2b42100df7e8f04015aa659e398cfa2f04e
|
|
| MD5 |
aad350efd3ebb2570c8d3d1549d49bf0
|
|
| BLAKE2b-256 |
3a877a75067db67064d977750629249d9cba64b48304c8bace804b78c97c5a7d
|