#!/usr/bin/env python
"""
Generic python script.
"""
__author__ = "Alex Drlica-Wagner"

import os
from standalone import noao
import numpy as np

if __name__ == "__main__":
    import argparse
    description = __doc__
    parser = argparse.ArgumentParser(description=description)
    parser.add_argument('votable',help='Input VOTable')
    parser.add_argument('npy',nargs='?')
    args = parser.parse_args()

    base,ext = os.path.splitext(args.votable)
    outfile = base+'.npy'
    npy = noao.vot2npy(args.votable)
    np.save(outfile,npy)
