mirpy 0.2.0
Pure-python miriad CLI wrapper.
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')
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| mirpy-0.2.0.tar.gz (md5) | Source | 2010-05-10 | 4KB | 466 | |
- Author: Malte Marquarding
- Home Page: http://www.atnf.csiro.au
- Keywords: miriad,astronomy,radio astronomy
- License: GPL
-
Categories
- Development Status :: 5 - Production/Stable
- Intended Audience :: Science/Research
- License :: OSI Approved :: GNU General Public License (GPL)
- Operating System :: Unix
- Programming Language :: Python
- Topic :: Scientific/Engineering :: Astronomy
- Topic :: Software Development :: Libraries :: Python Modules
- Package Index Owner: mmarquar
- DOAP record: mirpy-0.2.0.xml
