Exemplo n.º 1
0
def g2g_main(argv=sys.argv[1:]):
    from polar2grid.glue import main
    os.environ.setdefault("USE_POLAR2GRID_DEFAULTS", "0")
    main(argv=argv)
Exemplo n.º 2
0
# input into another program.
# Documentation: http://www.ssec.wisc.edu/software/polar2grid/
#
#     Written by David Hoese    January 2021
#     University of Wisconsin-Madison
#     Space Science and Engineering Center
#     1225 West Dayton Street
#     Madison, WI  53706
#     [email protected]
"""Simple wrapper around the Polar2Grid and Geo2Grid glue scripts."""

import os
import sys


def p2g_main(argv=sys.argv[1:]):
    from polar2grid.glue import main
    os.environ.setdefault("USE_POLAR2GRID_DEFAULTS", "1")
    main(argv=argv)


def g2g_main(argv=sys.argv[1:]):
    from polar2grid.glue import main
    os.environ.setdefault("USE_POLAR2GRID_DEFAULTS", "0")
    main(argv=argv)


if __name__ == "__main__":
    from polar2grid.glue import main
    sys.exit(main())