コード例 #1
0
def getPols ():
    """Return the polarizations being returned by readData, an array of the size
returned by getNPol (). Zeros indicate an error. Polarization values are as in FITS
and are defined in mirtask.util.POL\_??. """

    a = N.zeros (getNPol (), dtype=N.int32)
    _miriad_f.uvdatgti ('pols', a)
    return a
コード例 #2
0
def _getOneInt (kw):
    a = N.zeros (1, dtype=N.int32)
    _miriad_f.uvdatgti (kw, a)
    return a[0]