#!/usr/bin/env python3
"""Create a first guess to be used for gridpp."""
import logging
import sys
import surfex


if __name__ == "__main__":
    kwargs = surfex.parse_args_first_guess_for_oi(sys.argv[1:])
    debug = kwargs.get("debug")

    if debug:
        logging.basicConfig(format='%(asctime)s %(levelname)s %(pathname)s:%(lineno)s %(message)s',
                            level=logging.DEBUG)
    else:
        logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', level=logging.INFO)
    logging.info("************ FirstGuess4gridpp ******************")
    surfex.first_guess_for_oi(**kwargs)
