Changeset 24805
- Timestamp:
- 05/05/20 11:21:02 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/SMBpddSicopolis.m
r24803 r24805 6 6 classdef SMBpddSicopolis 7 7 properties (SetAccess=public) 8 precipitation = NaN; 9 monthlytemperatures = NaN; 10 temperature_anomaly = NaN; 11 precipitation_anomaly = NaN; 12 smb_corr = NaN; 13 desfac = 0; 14 s0p = NaN; 15 s0t = NaN; 16 rlaps = 0; 17 isfirnwarming = 0; 18 steps_per_step=1 19 requested_outputs = {}; 8 precipitation = NaN; 9 monthlytemperatures = NaN; 10 temperature_anomaly = NaN; 11 precipitation_anomaly = NaN; 12 smb_corr = NaN; 13 desfac = 0; 14 s0p = NaN; 15 s0t = NaN; 16 rlaps = 0; 17 isfirnwarming = 0; 18 steps_per_step = 1 19 averaging = 0 20 requested_outputs = {}; 20 21 end 21 22 methods … … 86 87 end 87 88 md = checkfield(md,'fieldname','smb.steps_per_step','>=',1,'numel',[1]); 89 md = checkfield(md,'fieldname','smb.averaging', 'numel', [1], 'values', [0, 1, 2]); 88 90 md = checkfield(md,'fieldname','smb.requested_outputs','stringrow',1); 89 91 … … 104 106 fielddisplay(self,'isfirnwarming','is firnwarming (Reeh 1991) activated (0 or 1, default is 1)'); 105 107 fielddisplay(self, 'steps_per_step', 'number of smb steps per time step'); 108 fielddisplay(self, 'averaging', 'averaging methods from short to long steps'); 106 109 disp(sprintf('%55s 0: Arithmetic (default)')); 107 110 disp(sprintf('%55s 0: Geometric')); … … 127 130 WriteData(fid,prefix,'object',self,'class','smb','fieldname','smb_corr','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts); 128 131 WriteData(fid, prefix, 'object', self, 'fieldname', 'steps_per_step', 'format', 'Integer'); 132 WriteData(fid, prefix, 'object', self, 'fieldname', 'averaging', 'format', 'Integer'); 129 133 130 134 %process requested outputs
Note:
See TracChangeset
for help on using the changeset viewer.