You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/model_structure.md
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,9 +32,9 @@ If you use a different file structure and do not update the relative file paths
32
32
The model code itself is heavily commented with the hope that the code is easy to follow and develop further. After [installing PyGEM](install_pygem_target), downloading the required [input files](model_inputs_target), and setting up the [directory structure](directory_structure_target) (or modifying the *~/PyGEM/config.yaml* with your preferred directory structure) you are ready to run the code! Generally speaking, the workflow includes:
33
33
*[Pre-process data](preprocessing_target) <em>(optional if including more data)</em>
34
34
*[Set up configuration file](config_workflow_target)
35
-
*[Calibrate frontal ablation parameter](workflow_cal_frontalablation_target) <em>(optional for marine-terimating glaciers)</em>
36
35
*[Calibrate climatic mass balance parameters](workflow_cal_prms_target)
@@ -92,17 +92,14 @@ Circularity issues exist in calibrating the frontal ablation parameter as the ma
92
92
```
93
93
94
94
95
-
(workflow_cal_glena_target)=
95
+
(workflow_run_inversion_target)=
96
96
### Calibrate ice viscosity model parameter
97
97
The ice viscosity ("Glen A") model parameter is calibrated such that the ice volume estimated using the calibrated mass balance gradients are consistent with the reference ice volume estimates ([Farinotti et al. (2019)](https://www.nature.com/articles/s41561-019-0300-3)) for each RGI region. This is done by running the following:
98
98
```
99
-
run_calibration_reg_glena
99
+
run_inversion
100
100
```
101
101
102
-
If successful, the script will run without error and output the following:
103
-
* ../Output/calibration/‘glena_region.csv’
104
-
105
-
For more details, see the [run_calibration_reg_glena.py Script Overview](run_calibration_reg_glena_overview_target).
102
+
For more details, see the [run_inversion.py Script Overview](run_inversion_overview_target).
106
103
107
104
108
105
(workflow_sim_target)=
@@ -130,7 +127,7 @@ For more details, see the [run_simulation.py Script Overview](run_simulation_tar
130
127
There are currently several scripts available to post-process PyGEM simulations. To aggregate simulations by RGI region, climate scenario, and variable, run the *postproc_compile_simulations.py* script. For example to compile all Alaska's glacier mass, area, runoff, etc. for various scenarios we would run the following:
This script will perform ice thickness inversion while calibrating the ice viscosity ("Glen A") model parameter such that the modeled ice volume roughly matches the ice volume estimates from [Farinotti et al. (2019)](https://www.nature.com/articles/s41561-019-0300-3) for each RGI region. Run the script as follows:
4
+
5
+
```
6
+
run_inversion -rgi_region01 <region>
7
+
```
8
+
9
+
## Script Structure
10
+
11
+
Broadly speaking, the script follows:
12
+
* Load glaciers
13
+
* Load climate data
14
+
* Compute apparent mass balance and invert for initial ice thickness
15
+
* Use minimization to find agreement between our modeled and [Farinotti et al. (2019)](https://www.nature.com/articles/s41561-019-0300-3) modeled ice thickness estimates for each RGI region
16
+
* Export the calibrated parameters
17
+
18
+
## Special Considerations
19
+
The regional Glen A value is calibrated by inverting for the ice thickness of all glaciers in a given region without considering calving (all glaciers are considered land-terminating). After the "best" Glen A value is determined, a final round of ice thickness inversion is performed for tidewater glaciers with calving turned **on**. Running this script will by default export the regionally calibrated Glen A values to the path specfied by `sim.oggm_dynamics.glen_a_regional_relpath` in *~/PyGEM/config.yaml'*. The calibrated inversion parameters also get stored within a given glacier directories *diagnostics.json* file, e.g.:
0 commit comments