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 warps the documentation fo miriad tasks.
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 teh 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
mirpy-trunk.tar.gz
(4.3 kB
view details)
File details
Details for the file mirpy-trunk.tar.gz.
File metadata
- Download URL: mirpy-trunk.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92e16dceac3cd2420e902458b21fbcd1d767c990e0d88ffe25893aebbe5afa67
|
|
| MD5 |
16c9551f6f8b3c8863a4e5b85a383978
|
|
| BLAKE2b-256 |
c618bb81dec27fa8da40f1ef13c69dc601939e158c2d66bb7f91546091c3bbd4
|