source: issm/trunk/src/m/model/modeldefault/modeldefault_process.m@ 6860

Last change on this file since 6860 was 6860, checked in by Mathieu Morlighem, 14 years ago

deleted all global variables. If ISSM_DIR is needed, call issmdir() routine. This makes everything easier: no more clearall

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