Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions docs/model_structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ If you use a different file structure and do not update the relative file paths
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:
* [Pre-process data](preprocessing_target) <em>(optional if including more data)</em>
* [Set up configuration file](config_workflow_target)
* [Calibrate frontal ablation parameter](workflow_cal_frontalablation_target) <em>(optional for marine-terimating glaciers)</em>
* [Calibrate climatic mass balance parameters](workflow_cal_prms_target)
* [Calibrate ice viscosity parameter](workflow_cal_glena_target)
* [Calibrate frontal ablation parameter](workflow_cal_frontalablation_target) <em>(optional for marine-terimating glaciers)</em>
* [Calibrate ice viscosity parameter](workflow_run_inversion_target)
* [Run model simulation](workflow_sim_target)
* [Post-process output](workflow_post_target)
* [Analyze output](workflow_analyze_target)
Expand Down Expand Up @@ -92,17 +92,14 @@ Circularity issues exist in calibrating the frontal ablation parameter as the ma
```


(workflow_cal_glena_target)=
(workflow_run_inversion_target)=
### Calibrate ice viscosity model parameter
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:
```
run_calibration_reg_glena
run_inversion
```

If successful, the script will run without error and output the following:
* ../Output/calibration/‘glena_region.csv’

For more details, see the [run_calibration_reg_glena.py Script Overview](run_calibration_reg_glena_overview_target).
For more details, see the [run_inversion.py Script Overview](run_inversion_overview_target).


(workflow_sim_target)=
Expand Down Expand Up @@ -130,7 +127,7 @@ For more details, see the [run_simulation.py Script Overview](run_simulation_tar
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:

```
compile_simulations -rgi_region 01 -scenario ssp245 ssp370 ssp585
postproc_compile_simulations -rgi_region 01 -scenario ssp245 ssp370 ssp585
```

(workflow_analyze_target)=
Expand Down
24 changes: 0 additions & 24 deletions docs/run_calibration_reg_glena_overview.md

This file was deleted.

22 changes: 22 additions & 0 deletions docs/run_inversion_overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
(run_inversion_overview_target)=
# run_inversion.py
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:

```
run_inversion -rgi_region01 <region>
```

## Script Structure

Broadly speaking, the script follows:
* Load glaciers
* Load climate data
* Compute apparent mass balance and invert for initial ice thickness
* 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
* Export the calibrated parameters

## Special Considerations
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.:
```
{"dem_source": "COPDEM90", "flowline_type": "elevation_band", "apparent_mb_from_any_mb_residual": 2893.2237556771674, "inversion_glen_a": 3.784593106855888e-24, "inversion_fs": 0}
```
2 changes: 1 addition & 1 deletion docs/scripts_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ maxdepth: 1
---

run_calibration_frontalablation_overview
run_inversion_overview
run_calibration_overview
run_calibration_reg_glena_overview
run_simulation_overview
```
Loading