Skip to content

Commit

Permalink
New LSYGO hard and soft model ensembles
Browse files Browse the repository at this point in the history
New distribution of LSYGO models into "hard" and "soft" ensembles. Soft ensembles are used for SMB reconstructions of the past 1967-2015 period, and hard ensembles are used for future projections.
  • Loading branch information
JordiBolibar committed May 9, 2020
1 parent b49b5bb commit a862212
Show file tree
Hide file tree
Showing 660 changed files with 357 additions and 311 deletions.
8 changes: 4 additions & 4 deletions code/alpgm_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
######### SETTINGS ##############################################################################
# projection == True -> Projections with ADAMONT for the 21st century
# projection == False -> Historical simulations for the 1984 - 2015 period with SAFRAN
historical_forcing, projection_forcing, simulation_type = settings.simulation_settings(projection = False)
historical_forcing, projection_forcing, simulation_type = settings.simulation_settings(projection = True)

### Global variables ###
# Set the glacier index to start the simulations
Expand All @@ -55,7 +55,7 @@
# SMB machine learning models generation

settings.train_smb_model(historical_forcing,
compute_forcing = True, # Compute historical climate forcings
compute_forcing = False, # Compute historical climate forcings
train_model = False) # Re-train SMB machine learning models

########## DELTA H FUNCTIONS GENERATION #######################
Expand All @@ -65,9 +65,9 @@

########## SMB PROJECTION + GLACIER GEOMETRY EVOLUTION #######
settings.glacier_simulation(simulation_type, counter_threshold,
validate_SMB = True, # SMB model(s) validation or reconstruction
validate_SMB = False, # SMB model(s) validation or reconstruction
compute_projection_forcings = False, # Compute projection climate forcings
compute_evolution = False, # Compute glacier evolution
compute_evolution = True, # Compute glacier evolution
reconstruct = True, # Reconstruct glacier-wide SMB timeseries
overwrite = True)

Expand Down
198 changes: 87 additions & 111 deletions code/glacier_evolution.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion code/safran_forcings.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def main(compute):

#### Flags #####
bypass_glacier_data = False
t_lim = 2.0
t_lim = 0.0

# year_start = 1984
# year_start = 1967
Expand Down
10 changes: 7 additions & 3 deletions code/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ def init(hist_forcing, proj_forcing, simu_type, smb_model, cluster):
global path_ensemble_ann
global smb_model_type
if(smb_model == 'ann_no_weights'):
path_ann = os.path.join(path_smb, 'ANN', 'LSYGO')
if(simulation_type == 'historical'):
path_ann = os.path.join(path_smb, 'ANN', 'LSYGO_soft')
elif(simulation_type == 'future'):
path_ann = os.path.join(path_smb, 'ANN', 'LSYGO_hard')
# path_ann = os.path.join(path_smb, 'ANN', 'LSYGO')
# path_ann = path_smb + 'ANN\\LOGO\\'
# path_ann = path_smb + 'ANN\\LOYO\\'
path_cv_ann = os.path.join(path_ann, 'CV')
Expand Down Expand Up @@ -106,8 +110,8 @@ def adamont_simulation(simulation_type, compute_projection_forcings, compute_evo
# for thickness_idx in range(0,2):
for i in range(0, ADAMONT_proj_filepaths.size, 2):
if(forcing_threshold <= counter):
current_ADAMONT_model_daymean = str(ADAMONT_proj_filepaths[i])
current_ADAMONT_model_daysum = str(ADAMONT_proj_filepaths[i+1])
current_ADAMONT_model_daymean = str(os.path.join(path_adamont, ADAMONT_proj_filepaths[i]))
current_ADAMONT_model_daysum = str(os.path.join(path_adamont, ADAMONT_proj_filepaths[i+1]))
current_ADAMONT_forcing_mean = os.path.join('projections', ADAMONT_proj_filepaths[i])
current_ADAMONT_forcing_sum = os.path.join('projections', ADAMONT_proj_filepaths[i+1])
adamont_forcings.main(compute_projection_forcings)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added glacier_data/smb/ANN/LOYO/RMSE_per_fold.txt
Binary file not shown.
Binary file added glacier_data/smb/ANN/LOYO/best_model_LOYO.h5
Binary file not shown.
Binary file added glacier_data/smb/ANN/LOYO/bias_per_fold.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_10_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_11_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_12_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_13_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_14_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_15_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_16_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_17_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_18_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_19_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_1_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_20_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_21_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_22_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_23_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_24_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_25_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_26_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_27_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_28_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_29_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_2_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_30_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_31_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_32_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_33_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_34_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_35_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_36_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_37_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_38_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_39_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_3_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_40_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_41_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_42_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_43_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_44_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_45_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_46_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_47_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_48_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_49_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_4_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_50_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_51_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_52_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_53_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_54_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_55_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_56_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_57_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_58_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_59_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_5_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_60_model.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added glacier_data/smb/ANN/LSYGO/CV/glacier_65_model.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_6_model.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_7_model.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_8_model.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/CV/glacier_9_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/RMSE_per_fold.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/best_model_LSYGO.h5
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/10/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/11/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/12/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/12/ann_glacier_model.h5
Binary file not shown.
Binary file added glacier_data/smb/ANN/LSYGO/ensemble/13/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file added glacier_data/smb/ANN/LSYGO/ensemble/14/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/15/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/15/ann_glacier_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/16/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/16/ann_glacier_model.h5
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/17/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/18/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/18/ann_glacier_model.h5
Binary file not shown.
Binary file added glacier_data/smb/ANN/LSYGO/ensemble/19/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file added glacier_data/smb/ANN/LSYGO/ensemble/2/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/22/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/22/ann_glacier_model.h5
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/23/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/24/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/26/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/26/ann_glacier_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/27/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/27/ann_glacier_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/28/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/28/ann_glacier_model.h5
Binary file not shown.
Binary file added glacier_data/smb/ANN/LSYGO/ensemble/29/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/30/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/30/ann_glacier_model.h5
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/31/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/32/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/33/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/34/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/36/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file added glacier_data/smb/ANN/LSYGO/ensemble/37/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file added glacier_data/smb/ANN/LSYGO/ensemble/38/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file added glacier_data/smb/ANN/LSYGO/ensemble/39/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/4/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/4/ann_glacier_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/40/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/40/ann_glacier_model.h5
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/41/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/42/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file added glacier_data/smb/ANN/LSYGO/ensemble/43/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/44/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/44/ann_glacier_model.h5
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/46/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file added glacier_data/smb/ANN/LSYGO/ensemble/47/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/48/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/48/ann_glacier_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/49/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/49/ann_glacier_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/5/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/5/ann_glacier_model.h5
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/50/SMB_nn.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/ensemble/50/ann_glacier_model.h5
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/7/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file removed glacier_data/smb/ANN/LSYGO/ensemble/9/SMB_nn.txt
Binary file not shown.
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/overall_average_score.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/overall_bias.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/overall_negative_RMSE.txt
Binary file not shown.
Binary file modified glacier_data/smb/ANN/LSYGO/overall_positive_RMSE.txt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit a862212

Please sign in to comment.