def georinex_loc(): """ Visualize location of all receivers on map, where color & size are proportional to measurement interval (smaller is better) """ from matplotlib.pyplot import show import georinex.plots_geo as grp import georinex.geo as gg p = argparse.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()
def georinex_loc(): """ Visualize location of all receivers on map, where color & size are proportional to measurement interval (smaller is better) """ from matplotlib.pyplot import show import georinex.plots_geo as grp import georinex.geo as gg p = argparse.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()
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(): 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])
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])
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 = gg.get_locations(flist) grp.receiver_locations(locs) show()
def georinex_time(): p = argparse.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')
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, 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.quiet, p.verbose) else: raise FileNotFoundError(f'{filename} is not a path or file')
def georinex_time(): p = argparse.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")
ostr += f" {interval}" Nexpect = (times[-1] - times[0]) // timedelta(seconds=interval) + 1 if Nexpect != Ntimes: logging.warning( f"{fn.name}: expected {Nexpect} but got {Ntimes} times") print(ostr) if verbose: print(times) p = argparse.ArgumentParser(description="Print times in RINEX file") 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")
""" import argparse from pathlib import Path from matplotlib.pyplot import show import georinex.plots_geo as grp import georinex.geo as gg import georinex as gr p = argparse.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()