Skip to content

Commit 82bf663

Browse files
committed
Merge branch 'dev'
2 parents 72198f3 + a085188 commit 82bf663

9 files changed

Lines changed: 2949 additions & 990 deletions

config/config.yaml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ oggm_dir: '/home/maffe/OGGM/'
44
coastlines_gshhg_dir: '/media/maffe/nvme/gshhg/'
55
racmo_dir: '/media/maffe/nvme/racmo/'
66
ERA5_t2m_dir: '/media/maffe/nvme/ERA5/'
7+
link_ids_rgi6_rgi7_csv: '/media/maffe/nvme/link_ids_rgi_7_62/link_ids_rgi_7_62.csv'
78

89
millan_velocity_dir: '/media/maffe/nvme/Millan/velocity/'
910
NSIDC_velocity_Greenland_dir: '/media/maffe/nvme/Greenland_NSIDC/velocity/'
@@ -15,33 +16,48 @@ NSIDC_icethickness_Greenland_dir: '/media/maffe/nvme/Greenland_NSIDC/thickness/'
1516
NSIDC_icethickness_Antarctica_dir: '/media/maffe/nvme/Antarctica_NSIDC/thickness/NSIDC-0756/' # BedMachine v3
1617

1718
model_input_dir: '/home/maffe/PycharmProjects/iceboost/saved_iceboost/'
18-
model_output_results_dir: '/home/maffe/PycharmProjects/iceboost/saved_iceboost/iceboost_deploy_xgb_cat_20240731_k3/'
19+
model_output_results_dir: '/home/maffe/PycharmProjects/iceboost/saved_iceboost/iceboost_deploy_xgb_cat_20250106/'
1920
model_output_global_deploy_dir: '/media/maffe/nvme/iceboost_global_deploy/'
20-
model_filename_xgb: 'iceboost_xgb_20240731.json'
21-
model_filename_cat: 'iceboost_cat_20240731.cbm'
21+
#model_filename_xgb: 'iceboost_xgb_20240731.json'
22+
#model_filename_cat: 'iceboost_cat_20240731.cbm'
23+
model_filename_xgb: 'iceboost_xgb_20241012.json'
24+
model_filename_cat: 'iceboost_cat_20241012.cbm'
2225
filename_csv_deploy: 'iceboost_deploy_list_id.csv'
23-
metadata_csv_file: '/media/maffe/nvme/glathida/glathida-3.1.0/glathida-3.1.0/data/metadata35_hmineq0.0_tmin20050000_mean_grid_100.csv'
26+
metadata_csv_file: '/media/maffe/nvme/glathida/glathida-3.1.0/glathida-3.1.0/data/metadata38_hmineq1.0_tmin20050000_mean_grid_100.csv'
2427

2528
# model deploy save figures
2629
deploy_save_figs: 0
2730

31+
# save regional run figures and tif
32+
deploy_global_save_figs: 0
33+
2834
# configs for feature fetching
2935
graph_max_layer_depth: 3 # maximum depth consider in the graph used to calculate the glacier cluster
3036
kdtree_dist_max_k_geometries: 99999 # maximum number of geometries considered in dist method.
37+
deploy_mode: 'single' # ('auto', 'single')
38+
n_jobs: 8 # multiprocessing
39+
mode_point_generation: 'grid' #options: 'random', 'grid'
3140

3241
# configs for model inference
33-
featuresBase: &base ['Area', 'Perimeter', 'Zmin', 'Zmax', 'Zmed', 'Slope', 'Lmax', 'Aspect', 'TermType',
34-
'elevation', 'elevation_from_zmin', 'dist_from_border_km_geom',
35-
'slope50', 'slope75', 'slope100', 'slope125', 'slope150', 'slope300', 'slope450', 'slopegfa',
36-
'curv_50', 'curv_300', 'curv_gfa', 'dmdtda_hugo', 'deltaZ',
37-
'smb', 't2m', 'dist_from_ocean']
42+
#featuresBase: &base ['Area', 'Perimeter', 'Zmin', 'Zmax', 'Zmed', 'Slope', 'Lmax', 'Aspect', 'TermType',
43+
# 'elevation', 'elevation_from_Zmin', 'dist_from_border_km_geom',
44+
# 'slope50', 'slope75', 'slope100', 'slope125', 'slope150', 'slope300', 'slope450', 'slopegfa',
45+
# 'curv_50', 'curv_300', 'curv_gfa', 'dmdtda_hugo', 'deltaZ',
46+
# 'smb', 't2m', 'dist_from_ocean', 'TermType',]
47+
48+
featuresBase: &base ['Area', 'Perimeter', 'zmin', 'zmax', 'zmed', 'slope', 'aspect', 'curvature', 'lmax',
49+
'elevation', 'elevation_from_zmin', 'dist_from_border_km_geom',
50+
'slope50', 'slope75', 'slope100', 'slope125', 'slope150', 'slope300', 'slope450', 'slopegfa',
51+
'curv_50', 'curv_100', 'curv_150', 'curv_300', 'curv_450', 'curv_gfa', 'dmdtda_hugo', 'deltaz',
52+
'smb', 't2m', 'dist_from_ocean', 'Cluster_area', 'elevation_0_1']
3853

3954
featuresVel: &vel ['v50', 'v100', 'v150', 'v300', 'v450', 'vgfa']
4055

4156
features:
4257
- *base
4358
- *vel
44-
n_points_regression: 30000
59+
n_points_regression_single: 30000
60+
n_points_regression_cluster: 200000
4561
target: 'THICKNESS'
4662
millan: 'ith_m'
4763
farinotti: 'ith_f'

create_metadata.py

Lines changed: 305 additions & 125 deletions
Large diffs are not rendered by default.

create_rgi_mosaic_tanxedem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def create_glacier_tile_dem_mosaic(minx, miny, maxx, maxy, rgi, path_tandemx):
147147
minx=minx,
148148
miny=miny,
149149
maxx=maxx,
150-
maxy=maxy)
150+
maxy=maxy).squeeze()
151151
except:
152152
raise ValueError(f"Problems creation of clipping the focus around the glacier tiles")
153153

0 commit comments

Comments
 (0)