swh:1:snp:03e8cdabc80bf6f4ef54d117858809e20088601c
Tip revision: 9e003eedd5f69c466b0634d99dc952c1781ad2b7 authored by Adam Beardsley on 15 May 2017, 21:54:19 UTC
write uvfits group data as 64bit
write uvfits group data as 64bit
Tip revision: 9e003ee
make_cal_parameters.py
"""
Format the UVCal object parameters into a sphinx rst file.
"""
from pyuvdata import UVCal
import numpy as np
from astropy.time import Time
cal = UVCal()
out = 'UVCal Parameters\n==============\n'
out += ("These are the standard attributes of UVCal objects.\n\nUnder the hood "
"they are actually properties based on UVParameter objects.\n\n")
out += 'Required\n----------------\n'
out += ('These parameters are required to have a sensible UVCal object and \n'
'are required for most kinds of uv cal files.')
out += "\n\n"
for thing in cal.required():
obj = getattr(cal, thing)
out += '**{name}**\n'.format(name=obj.name)
out += ' {desc}\n'.format(desc=obj.description)
out += "\n"
out += 'Optional\n----------------\n'
out += ('These parameters are defined by one or more file standard but are not '
'always required.\nSome of them are required depending on the '
'cal_type (as noted below).')
out += "\n\n"
for thing in cal.extra():
obj = getattr(cal, thing)
out += '**{name}**\n'.format(name=obj.name)
out += ' {desc}\n'.format(desc=obj.description)
out += "\n"
t = Time.now()
t.out_subfmt = 'date'
out += "last updated: {date}".format(date=t.iso)
F = open('uvcal_parameters.rst', 'w')
F.write(out)
print "wrote uvcal_parameters.rst"