cfg.PATHS['topo_dir'] = os.path.join(DATA_DIR, 'topo') cfg.PATHS['cru_dir'] = os.path.join(DATA_DIR, 'cru') cfg.PATHS['rgi_dir'] = os.path.join(DATA_DIR, 'rgi') cfg.PATHS['itmix_divs'] = os.path.join(DATA_DIR, 'itmix', 'my_divides.pkl') # Calibration data where ITMIX glaciers have been removed _path = os.path.join(DATA_DIR, 'itmix', 'wgms', 'rgi_wgms_links_2015_RGIV5.csv') cfg.PATHS['wgms_rgi_links'] = _path _path = os.path.join(DATA_DIR, 'itmix', 'glathida', 'rgi_glathida_links_2014_RGIV5.csv') cfg.PATHS['glathida_rgi_links'] = _path # Read in the RGI file(s) rgidf = itmix.get_rgi_df(reset=False) # Set the newly created divides (quick n dirty fix) df = gpd.GeoDataFrame.from_file(get_demo_file('divides_workflow.shp')) df = pd.concat([df, pd.read_pickle(cfg.PATHS['itmix_divs'])]) cfg.PARAMS['divides_gdf'] = df.set_index('RGIID') # Run parameters cfg.PARAMS['d1'] = 4 cfg.PARAMS['dmax'] = 100 cfg.PARAMS['border'] = 20 cfg.PARAMS['invert_with_sliding'] = False cfg.PARAMS['min_slope'] = 2 cfg.PARAMS['max_shape_param'] = 0.006