def execute(dbname, options):
    """Driver routine for a forecast simulation."""
    forecast_options = options['forecast']
    if 'model' in forecast_options:
        if 'vic' in forecast_options['model']:
            if 'vic' in options:
                runVIC(dbname, options)
            else:
                print "ERROR! No configuration options for VIC model."
                sys.exit()
        if 'dssat' in forecast_options['model']:
            if 'dssat' in options:
                runDSSAT(dbname, options)
            else:
                print "ERROR! No configuration options for DSSAT model."
                sys.exit()
    else:
        print "ERROR! No model selected for forecast."
        sys.exit()
dataset/ETHPy150Open nasa/RHEAS/src/forecast.py/execute/original