Skip to content

Commit 272c29d

Browse files
committed
Merge branch 'dev'
2 parents f7cc631 + ef07e70 commit 272c29d

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

README.md

+16-10
Original file line numberDiff line numberDiff line change
@@ -140,26 +140,32 @@ Each userdata file must contain a timetable named `Data` with column names match
140140

141141
IceModel produces two outputs: `ice1` and `ice2`, representing 1-dimensional and 2-dimensional data, respectively, with dimensions time and depth. The `ice1` data are saved in a `timetable` object and `ice2` are saved in a `struct` object. An IceModel simulation with `opts.saveflag` set true will save these two objects as well as the `opts` struct according to the following convention:
142142

143-
- `ICEMODEL_OUTPUT_PATH/SITENAME/SMBMODEL/YYYY/ice1_FORCINGS_forcings_USERDATA_USERVARS.mat`
144-
- `ICEMODEL_OUTPUT_PATH/SITENAME/SMBMODEL/YYYY/ice2_FORCINGS_forcings_USERDATA_USERVARS.mat`
145-
- `ICEMODEL_OUTPUT_PATH/SITENAME/SMBMODEL/opts/opts_FORCINGS_forcings_USERDATA_USERVARS.mat`
143+
```sh
144+
ICEMODEL_OUTPUT_PATH/SITENAME/SMBMODEL/YYYY/ice1_FORCINGS_forcings_USERDATA_USERVARS.mat
145+
ICEMODEL_OUTPUT_PATH/SITENAME/SMBMODEL/YYYY/ice2_FORCINGS_forcings_USERDATA_USERVARS.mat
146+
ICEMODEL_OUTPUT_PATH/SITENAME/SMBMODEL/opts/opts_FORCINGS_forcings_USERDATA_USERVARS.mat
147+
```
146148

147149
Here, `ICEMODEL_OUTPUT_PATH` is an environment variable set by the `icemodel.config` function, the lowercase "forcings" is a string literal used to join the `FORCINGS` and `USERDATA` string variables, and `SITENAME`, `SMBMODEL`, `FORCINGS`, `USERDATA`, and `USERVARS` are parameters passed to the `icemodel.setopts` function (either directly or indirectly via the helper function `icemodel.run.point`). One `YYYY` folder is created for each year in the `SIMYEARS` parameter passed to `icemodel.setopts`.
148150

149151
Note that the `ICEMODEL_OUTPUT_PATH/SITENAME/SMBMODEL/YYYY` subfolders are generated automatically in the `icemodel.setopts` function if they do not exist.
150152

151153
Example: An IceModel simulation for the KAN-M weather station location for years 2015:2016 using MERRA forcings, with `userdata='modis'` and `uservars='albedo'` will produce the following output files:
152154

153-
`ICEMODEL_OUTPUT_PATH/kanm/icemodel/2015/ice1_merra_forcings_modis_albedo.mat`
154-
`ICEMODEL_OUTPUT_PATH/kanm/icemodel/2015/ice2_merra_forcings_modis_albedo.mat`
155-
`ICEMODEL_OUTPUT_PATH/kanm/icemodel/2016/ice1_merra_forcings_modis_albedo.mat`
156-
`ICEMODEL_OUTPUT_PATH/kanm/icemodel/2016/ice2_merra_forcings_modis_albedo.mat`
157-
`ICEMODEL_OUTPUT_PATH/kanm/icemodel/opts/opts_merra_forcings_modis_albedo.mat`
155+
```sh
156+
ICEMODEL_OUTPUT_PATH/kanm/icemodel/2015/ice1_merra_forcings_modis_albedo.mat
157+
ICEMODEL_OUTPUT_PATH/kanm/icemodel/2015/ice2_merra_forcings_modis_albedo.mat
158+
ICEMODEL_OUTPUT_PATH/kanm/icemodel/2016/ice1_merra_forcings_modis_albedo.mat
159+
ICEMODEL_OUTPUT_PATH/kanm/icemodel/2016/ice2_merra_forcings_modis_albedo.mat
160+
ICEMODEL_OUTPUT_PATH/kanm/icemodel/opts/opts_merra_forcings_modis_albedo.mat
161+
```
158162

159163
If `userdata` and `uservars` are not supplied to `icemodel.setopts` or are supplied as empty arrays `[]`, or empty chars `''` (they are optional arguments but must be supplied as empty if subsequent arguments `saveflag` and/or `backupflag` are supplied), the filenames would be:
160164

161-
`ICEMODEL_OUTPUT_PATH/kanm/icemodel/2015/ice1_merra_forcings_merra_albedo.mat`
162-
`ICEMODEL_OUTPUT_PATH/kanm/icemodel/2015/ice2_merra_forcings_merra_albedo.mat`
165+
```sh
166+
ICEMODEL_OUTPUT_PATH/kanm/icemodel/2015/ice1_merra_forcings_merra_albedo.mat
167+
ICEMODEL_OUTPUT_PATH/kanm/icemodel/2015/ice2_merra_forcings_merra_albedo.mat
168+
```
163169

164170
Here, the `userdata` parameter takes on the value of the `forcings` parameter (`'merra'`), whereas the `uservars` parameter takes the value `'albedo'`, which is the default value set in `icemodel.setopts`. This reflects the focus of IceModel on studying the sensitivity of SMB models to ice albedo.
165171

0 commit comments

Comments
 (0)