https://github.com/RadioAstronomySoftwareGroup/pyuvdata
Revision b86f3ea682d8441fc6d368a1c323ae8d7f166929 authored by jburba on 01 March 2018, 15:08:13 UTC, committed by jburba on 01 March 2018, 15:08:13 UTC
1 parent c20e1bc
Tip revision: b86f3ea682d8441fc6d368a1c323ae8d7f166929 authored by jburba on 01 March 2018, 15:08:13 UTC
Updating plotting output
Updating plotting output
Tip revision: b86f3ea
readwrite_uvfits.py
#! /usr/bin/env python
import argparse
import os.path as op
from pyuvdata import UVData
parser = argparse.ArgumentParser()
parser.add_argument('uvfits_read',
help='name of a uvfits file to read in')
parser.add_argument('uvfits_write',
help='name of a uvfits file to write out')
args = parser.parse_args()
uvfits_file_in = args.uvfits_read
if not op.isfile(uvfits_file_in):
raise IOError('There is no file named {}'.format(args.uvfits_file_in))
uvfits_file_out = args.uvfits_write
this_uv = UVData()
this_uv.read_uvfits(uvfits_file_in)
this_uv.write_uvfits(uvfits_file_out)
del(this_uv)
Computing file changes ...