Changeset 25836 for issm/trunk/src/m/classes/SMBpddSicopolis.m
- Timestamp:
- 12/08/20 08:45:53 (4 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/m/classes/SMBpddSicopolis.m
r24686 r25836 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 9 precipitation = NaN; 10 monthlytemperatures = NaN; 11 temperature_anomaly = NaN; 12 precipitation_anomaly = NaN; 13 smb_corr = NaN; 14 desfac = 0; 15 s0p = NaN; 16 s0t = NaN; 17 rlaps = 0; 18 isfirnwarming = 0; 19 steps_per_step = 1 20 averaging = 0 21 requested_outputs = {}; 20 22 end 21 23 methods … … 81 83 md = checkfield(md,'fieldname','smb.s0t','>=',0,'NaN',1,'Inf',1,'size',[md.mesh.numberofvertices 1]); 82 84 md = checkfield(md,'fieldname','smb.rlaps','>=',0,'numel',1); 83 md = checkfield(md,'fieldname','smb.monthlytemperatures',' timeseries',1,'NaN',1,'Inf',1,'size',[md.mesh.numberofvertices 12]);84 md = checkfield(md,'fieldname','smb.precipitation',' timeseries',1,'NaN',1,'Inf',1,'size',[md.mesh.numberofvertices 12]);85 md = checkfield(md,'fieldname','smb.monthlytemperatures','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices 12]); 86 md = checkfield(md,'fieldname','smb.precipitation','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices 12]); 85 87 86 88 end 87 89 md = checkfield(md,'fieldname','smb.steps_per_step','>=',1,'numel',[1]); 90 md = checkfield(md,'fieldname','smb.averaging', 'numel', [1], 'values', [0, 1, 2]); 88 91 md = checkfield(md,'fieldname','smb.requested_outputs','stringrow',1); 89 92 … … 104 107 fielddisplay(self,'isfirnwarming','is firnwarming (Reeh 1991) activated (0 or 1, default is 1)'); 105 108 fielddisplay(self, 'steps_per_step', 'number of smb steps per time step'); 109 fielddisplay(self,'averaging','averaging methods from short to long steps'); 110 disp(sprintf('%51s 0: Arithmetic (default)',' ')); 111 disp(sprintf('%51s 1: Geometric',' ')); 112 disp(sprintf('%51s 2: Harmonic',' ')); 106 113 fielddisplay(self,'requested_outputs','additional outputs requested (TemperaturePDD, SmbAccumulation, SmbMelt)'); 107 114 end % }}} … … 124 131 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); 125 132 WriteData(fid, prefix, 'object', self, 'fieldname', 'steps_per_step', 'format', 'Integer'); 133 WriteData(fid, prefix, 'object', self, 'fieldname', 'averaging', 'format', 'Integer') 126 134 127 135 %process requested outputs
Note:
See TracChangeset
for help on using the changeset viewer.