def main(): args = argument_parser.get_parser('best_track').parse_args() # if len(args.constituents) == 0: # args.constituents = ['all'] logging.basicConfig(level=args.log_level) logging.getLogger("rasterio").setLevel(logging.WARNING) logging.getLogger("fiona").setLevel(logging.WARNING) logging.getLogger("matplotlib").setLevel(logging.WARNING) logging.getLogger("paramiko").setLevel(logging.WARNING) exit(_BestTrackRunCommand(args).run())
def main(): args = argument_parser.get_parser('tidal').parse_args() if len(args.constituents) == 0: args.constituents = ['all'] logging.basicConfig(level=args.log_level) logging.getLogger("rasterio").setLevel(logging.WARNING) logging.getLogger("fiona").setLevel(logging.WARNING) logging.getLogger("matplotlib").setLevel(logging.WARNING) logging.getLogger("paramiko").setLevel(logging.WARNING) drv = TidalRunCommand(args) retv = drv.run() exit(retv)
def main(): args = argument_parser.get_parser('best_track').parse_args() logging.basicConfig( level={ 'warning': logging.WARNING, 'info': logging.INFO, 'debug': logging.DEBUG, }[args.log_level], format='[%(asctime)s] %(name)s %(levelname)s: %(message)s', # force=True, ) logging.Formatter.converter = lambda *args: datetime.now(tz=timezone('UTC') ).timetuple() BestTrackRunCommand(args).run()
def main(): args = argument_parser.get_parser('tidal').parse_args() if len(args.constituents) == 0: args.constituents = ['all'] logging.basicConfig( level={ 'warning': logging.WARNING, 'info': logging.INFO, 'debug': logging.DEBUG, }[args.log_level], format='[%(asctime)s] %(name)s %(levelname)s: %(message)s', force=True, ) logging.Formatter.converter = lambda *args: datetime.now(tz=timezone('UTC') ).timetuple() TidalRunCommand(args).run()