#!/cvmfs/northgrid.gridpp.ac.uk/simonsobservatory/conda/so-conda-py310-20240304/bin/python import sys from spt3g import core if len(sys.argv) < 2: print('Usage: %s file.g3 [spt3g.module1] [spt3g.module2]' % sys.argv[0]) print('Dumps the given file to standard output, loading one or more python modules first') sys.exit(1) for lib in sys.argv[2:]: __import__(lib) for f in core.G3File(sys.argv[1]): print(f)