def METHOD_NAME(s, needSystemGM=True):
    if needSystemGM:
        m = sysgmrex.search(s)
        if not m:
            print('Did not find "System GM" entry')
            return None
        gm = float(m.group('gm'))
    else:
        gm = 1.
    allE = []
    alljd = []
    for m in elemrex.finditer(s):
        d = m.groupdict()
        E = [np.deg2rad(x) if rad else x
             for (x,rad) in zip([float(d[x]) for x in
                                 ['a',  'e',   'i',  'Omega', 'pomega','M' ]],
                                [False, False, True, True,    True,    True])]
        E.append(gm)
        allE.append(E)
        alljd.append(float(d['jd']))
    return alljd,allE