1 | function optionstruct=modeldefault_process(options),
|
---|
2 | %MODELDEFAULT_PROCESS - process modeldefault options
|
---|
3 | %
|
---|
4 | % Usage:
|
---|
5 | % optionstruct=modeldefault_process(options)
|
---|
6 |
|
---|
7 | %retrieve some paths
|
---|
8 | modeldatapath=[issmdir() '/projects/ModelData'];
|
---|
9 |
|
---|
10 | %initialize output
|
---|
11 | optionstruct=struct();
|
---|
12 |
|
---|
13 | %domainoutline
|
---|
14 | optionstruct.domainoutline=getfieldvalue(options,'domainoutline');
|
---|
15 |
|
---|
16 | %resolution
|
---|
17 | optionstruct.resolution=getfieldvalue(options,'resolution',10000);
|
---|
18 | disp(sprintf(' %-18s: %g','resolution',optionstruct.resolution));
|
---|
19 |
|
---|
20 | %iceshelves
|
---|
21 | iceshelves=[ISSM_DIR '/projects/Exp/Antarctica.exp']);
|
---|
22 | optionstruct.iceshelves=getfieldvalue(options,'iceshelves',iceshelves);
|
---|
23 | disp(sprintf(' %-18s: %s','iceshelves',optionstruct.iceshelves));
|
---|
24 |
|
---|
25 | %islands
|
---|
26 | islands=[ISSM_DIR '/projects/Exp/Antarctica.exp'];
|
---|
27 | optionstruct.islands=getfieldvalue(options,'islands',islands);
|
---|
28 | disp(sprintf(' %-18s: %s','islands',optionstruct.islands));
|
---|
29 |
|
---|
30 | %thicknesspath
|
---|
31 | thicknesspath=[modeldatapath '/BedMap/gridded/thickness.mat'];
|
---|
32 | optionstruct.thicknesspath=getfieldvalue(options,'thicknesspath',thicknesspath);
|
---|
33 | disp(sprintf(' %-18s: %s','thicknesspath',optionstruct.thicknesspath));
|
---|
34 |
|
---|
35 | %firnpath
|
---|
36 | firnpath=[modeldatapath '/BroekeFirn1km/firn.mat'];
|
---|
37 | optionstruct.firnpath=getfieldvalue(options,'firnpath',firnpath);
|
---|
38 | disp(sprintf(' %-18s: %s','firnpath',optionstruct.firnpath));
|
---|
39 |
|
---|
40 | %surfacepath
|
---|
41 | surfacepath=[modeldatapath '/BamberDEMAntarctica1km/surface_smooth30_lowslope.mat'];
|
---|
42 | optionstruct.surfacepath=getfieldvalue(options,'surfacepath',surfacepath);
|
---|
43 | disp(sprintf(' %-18s: %s','surfacepath',optionstruct.surfacepath));
|
---|
44 |
|
---|
45 | %mosaicpath
|
---|
46 | mosaicpath=[modeldatapath '/RignotAntarcticaVelMosaicRampErsAlos/RignotAntVel.mat'];
|
---|
47 | optionstruct.mosaicpath=getfieldvalue(options,'mosaicpath',mosaicpath);
|
---|
48 | disp(sprintf(' %-18s: %s','mosaicpath',optionstruct.mosaicpath));
|
---|
49 |
|
---|
50 | %temperaturepath
|
---|
51 | temperaturepath=[modeldatapath '/GiovinettoZwallyTemperatures92/Giovinetto_Temperatures.mat'];
|
---|
52 | optionstruct.temperaturepath=getfieldvalue(options,'temperaturepath',temperaturepath);
|
---|
53 | disp(sprintf(' %-18s: %s','temperaturepath',optionstruct.temperaturepath));
|
---|
54 |
|
---|
55 | %heatfluxpath
|
---|
56 | heatfluxpath=[modeldatapath '/HeatfluxAntarctica/RignotHeatFlux.mat'];
|
---|
57 | optionstruct.heatfluxpath=getfieldvalue(options,'heatfluxpath',heatfluxpath);
|
---|
58 | disp(sprintf(' %-18s: %s','heatfluxpath',optionstruct.heatfluxpath));
|
---|
59 |
|
---|
60 | %numlayers
|
---|
61 | optionstruct.numlayers=getfieldvalue(options,'numlayers',0);
|
---|
62 | disp(sprintf(' %-18s: %g','numlayers',optionstruct.numlayers));
|
---|
63 |
|
---|
64 | %extrusionexponent
|
---|
65 | optionstruct.extrusionexponent=getfieldvalue(options,'extrusionexponent',3);
|
---|
66 | disp(sprintf(' %-18s: %g','extrusionexponent',optionstruct.extrusionexponent));
|
---|
67 |
|
---|
68 |
|
---|
69 | %elementstype
|
---|
70 | if optionstruct.numlayers>0,
|
---|
71 | elementstype='pattyn';
|
---|
72 | else
|
---|
73 | elementstype='macayeal';
|
---|
74 | end
|
---|
75 | optionstruct.elementstype=getfieldvalue(options,'elementstype',elementstype);
|
---|
76 | disp(sprintf(' %-18s: %s','elementstype',optionstruct.elementstype));
|
---|