How to use the georinex.globber function in georinex

To help you get started, we’ve selected a few georinex examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github scivision / georinex / tests / test_conv.py View on Github external
def test_locs():
    if not gr.crxexe():
        pytest.skip(f'crx2rnx not found')

    pytest.importorskip('pymap3d')  # need to have this
    gg = pytest.importorskip('georinex.geo')

    pat = ['*o',
           '*O.rnx', '*O.rnx.gz',
           '*O.crx', '*O.crx.gz']

    flist = gr.globber(R, pat)

    locs = gg.get_locations(flist)

    assert locs.loc['demo.10o'].values == approx([41.3887, 2.112, 30])
github scivision / georinex / TimeRinex.py View on Github external
def main():
    p = ArgumentParser()
    p.add_argument('filename', help='RINEX filename to get times from')
    p.add_argument('-glob', help='file glob pattern', nargs='+', default='*')
    p.add_argument('-v', '--verbose', action='store_true')
    p = p.parse_args()

    filename = Path(p.filename).expanduser()

    print('filename: start, stop, number of times, interval')

    if filename.is_dir():
        flist = gr.globber(filename, p.glob)
        for f in flist:
            eachfile(f, p.verbose)
    elif filename.is_file():
        eachfile(filename, p.verbose)
    else:
        raise FileNotFoundError(f'{filename} is not a path or file')
github scivision / georinex / PlotRXlocation.py View on Github external
def main():
    p = ArgumentParser(description='plot receiver locations')
    p.add_argument('indir', help='path to RINEX 2 or RINEX 3 files')
    p.add_argument('-glob', help='file glob pattern', nargs='+',
                   default=['*o',
                            '*O.rnx', '*O.rnx.gz',
                            '*O.crx', '*O.crx.gz'])
    p = p.parse_args()

    indir = Path(p.indir).expanduser()

    flist = gr.globber(indir, p.glob)

    locs = gg.get_locations(flist)

    grp.receiver_locations(locs)

    show()