Changeset 27236
- Timestamp:
- 08/25/22 17:18:07 (3 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/SMBgemb.m
r27196 r27236 72 72 % 1: default value of 1, in areas with grain radius below teThresh 73 73 % 2: default value of 1, in areas with grain radius below teThresh and areas of dry snow (not bare ice or wet) at the surface 74 75 tcIdx = NaN; %method for calculating thermal conductivity (default is 1) 76 % 1: after Sturm et al, 1997 77 % 2: after Calonne et al., 2011 74 78 75 79 swIdx = NaN; %apply all SW to top grid cell (0) or allow SW to penetrate surface (1) (default 0, if swIdx=1 and aIdx=2, function of effective radius (Brun et al., 1992) or else dependent on snow density (taken from Bassford, 2002)) … … 203 207 '2: default value of 1, in areas with grain radius below teThresh and areas of dry snow (not bare ice or wet) at the surface'}); 204 208 209 fielddisplay(self,'tcIdx',{'method for calculating thermal conductivity (default is 1)',... 210 '1: after Sturm et al, 1997',... 211 '2: after Calonne et al., 2011'}); 212 205 213 %snow properties init 206 214 fielddisplay(self,'Dzini','Initial cell depth when restart [m]'); … … 343 351 self.aIdx = 1; 344 352 self.eIdx = 1; 353 self.tcIdx = 1; 345 354 self.swIdx = 0; 346 355 self.denIdx = 2; … … 426 435 md = checkfield(md,'fieldname','smb.aIdx','NaN',1,'Inf',1,'values',[0,1,2,3,4]); 427 436 md = checkfield(md,'fieldname','smb.eIdx','NaN',1,'Inf',1,'values',[0,1,2]); 437 md = checkfield(md,'fieldname','smb.tcIdx','NaN',1,'Inf',1,'values',[1,2]); 428 438 md = checkfield(md,'fieldname','smb.swIdx','NaN',1,'Inf',1,'values',[0,1]); 429 439 md = checkfield(md,'fieldname','smb.denIdx','NaN',1,'Inf',1,'values',[1,2,3,4,5,6,7]); … … 509 519 WriteData(fid,prefix,'object',self,'class','smb','fieldname','aIdx','format','Integer'); 510 520 WriteData(fid,prefix,'object',self,'class','smb','fieldname','eIdx','format','Integer'); 521 WriteData(fid,prefix,'object',self,'class','smb','fieldname','tcIdx','format','Integer'); 511 522 WriteData(fid,prefix,'object',self,'class','smb','fieldname','swIdx','format','Integer'); 512 523 WriteData(fid,prefix,'object',self,'class','smb','fieldname','denIdx','format','Integer'); -
issm/trunk-jpl/src/m/classes/SMBgemb.py
r27196 r27236 79 79 # 1: default value of 1, in areas with grain radius below teThresh 80 80 # 2: default value of 1, in areas with grain radius below teThresh and areas of dry snow (not bare ice or wet) at the surface 81 82 self.tcIdx = np.nan #method for calculating thermal conductivity (default is 1) 83 # 1: after Sturm et al, 1997 84 # 2: after Calonne et al., 2011 81 85 82 86 self.swIdx = np.nan # apply all SW to top grid cell (0) or allow SW to penetrate surface (1) (default 0, if swIdx=1 and aIdx=2, function of effective radius (Brun et al., 1992) or else dependent on snow density (taken from Bassford, 2002)) … … 207 211 '1: default value of 1, in areas with grain radius below teThresh', 208 212 '2: default value of 1, in areas with grain radius below teThresh and areas of dry snow (not bare ice or wet) at the surface'])) 213 s += '{}\n'.format(fielddisplay(self, 'tcIdx', ['method for calculating thermal conductivity (default is 1)', 214 '1: after Sturm et al, 1997', 215 '2: after Calonne et al., 2011'])) 209 216 210 217 # Snow properties init … … 330 337 self.aIdx = 1 331 338 self.eIdx = 1 339 self.tcIdx = 1 332 340 self.swIdx = 0 333 341 self.denIdx = 2 … … 417 425 md = checkfield(md, 'fieldname', 'smb.aIdx', 'NaN', 1, 'Inf', 1, 'values', [0, 1, 2, 3, 4]) 418 426 md = checkfield(md, 'fieldname', 'smb.eIdx', 'NaN', 1, 'Inf', 1, 'values', [0, 1, 2]) 427 md = checkfield(md, 'fieldname', 'smb.tcIdx', 'NaN', 1, 'Inf', 1, 'values', [1, 2]) 419 428 md = checkfield(md, 'fieldname', 'smb.swIdx', 'NaN', 1, 'Inf', 1, 'values', [0, 1]) 420 429 md = checkfield(md, 'fieldname', 'smb.denIdx', 'NaN', 1, 'Inf', 1, 'values', [1, 2, 3, 4, 5, 6, 7]) … … 496 505 WriteData(fid, prefix, 'object', self, 'class', 'smb', 'fieldname', 'aIdx', 'format', 'Integer') 497 506 WriteData(fid, prefix, 'object', self, 'class', 'smb', 'fieldname', 'eIdx', 'format', 'Integer') 507 WriteData(fid, prefix, 'object', self, 'class', 'smb', 'fieldname', 'tcIdx', 'format', 'Integer') 498 508 WriteData(fid, prefix, 'object', self, 'class', 'smb', 'fieldname', 'swIdx', 'format', 'Integer') 499 509 WriteData(fid, prefix, 'object', self, 'class', 'smb', 'fieldname', 'denIdx', 'format', 'Integer')
Note:
See TracChangeset
for help on using the changeset viewer.