diff --git a/grdwindinversion/main.py b/grdwindinversion/main.py index 3e4b4bc..ceea32f 100644 --- a/grdwindinversion/main.py +++ b/grdwindinversion/main.py @@ -1,5 +1,6 @@ from grdwindinversion.inversion import makeL2 from grdwindinversion.utils import get_memory_usage +import grdwindinversion import time import logging @@ -36,13 +37,13 @@ def processor_starting_point(): # raise Exception('this processor only handle acquisitions with VV or VV+VH polarization for now.') if args.config_file is None: if 'S1' in input_file: - config_file = 'config_S1.yaml' + config_file = os.path.join(os.path.dirname(grdwindinversion.__file__),'config_S1.yaml') elif 'RCM' in input_file: - config_file = 'config_RCM.yaml' + config_file = os.path.join(os.path.dirname(grdwindinversion.__file__),'config_RCM.yaml') elif 'RS2' in input_file: - config_file = 'config_RS2.yaml' + config_file = os.path.join(os.path.dirname(grdwindinversion.__file__),'config_RS2.yaml') elif 'hy2b' in input_file: - config_file = 'config_hy2b.yaml' + config_file = os.path.join(os.path.dirname(grdwindinversion.__file__),'config_hy2b.yaml') else: raise Exception('config data file cannot be defined using the input filename') else: