def test_locs(): pytest.importorskip('pymap3d') pat = ['*o', '*O.rnx', '*O.rnx.gz', '*O.crx', '*O.crx.gz'] flist = gr.globber(R, pat) locs = gr.getlocations(flist) assert locs.loc['demo.10o'].values == approx([41.3887, 2.112, 30])
def test_locs(): txt = (R / 'demo.10o').read_text() with io.StringIO(txt) as f: locs = gr.getlocations(f) if locs.size == 0: pytest.skip('no locs found') assert locs.iloc[0].values == approx([41.3887, 2.112, 30])
def test_locs(): if not gr.crxexe(): pytest.skip(f'crx2rnx not found') pytest.importorskip('pymap3d') pat = ['*o', '*O.rnx', '*O.rnx.gz', '*O.crx', '*O.crx.gz'] flist = gr.globber(R, pat) locs = gr.getlocations(flist) assert locs.loc['demo.10o'].values == approx([41.3887, 2.112, 30])
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 = gr.getlocations(flist) grp.receiver_locations(locs) show()
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 = gr.getlocations(flist) grp.receiver_locations(locs) show()