Changeset 14764
- Timestamp:
- 04/26/13 08:08:20 (12 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/classes/surfaceforcings.m ¶
r14742 r14764 48 48 md = checkfield(md,'surfaceforcings.issmbgradients','numel',[1],'values',[0 1]); 49 49 if(obj.ispdd) 50 md = checkfield(md,'surfaceforcings.desfac','<=',1 );51 md = checkfield(md,'surfaceforcings.s0p','>=',0 );50 md = checkfield(md,'surfaceforcings.desfac','<=',1,'numel',1); 51 md = checkfield(md,'surfaceforcings.s0p','>=',0,'numel',1); 52 52 if(obj.isdelta18o==0) 53 53 md = checkfield(md,'surfaceforcings.monthlytemperatures','forcing',1,'NaN',1); -
TabularUnified issm/trunk-jpl/src/m/classes/surfaceforcings.py ¶
r14751 r14764 28 28 self.temperatures_lgm = float('NaN') 29 29 self.precipitations_presentday = float('NaN') 30 self.desfac = 0. 31 self.s0p = 0. 30 32 31 33 #set defaults … … 39 41 string="%s\n%s"%(string,fielddisplay(self,'mass_balance','surface mass balance [m/yr ice eq]')) 40 42 string="%s\n%s"%(string,fielddisplay(self,'ispdd','is pdd activated (0 or 1, default is 0)')) 43 string="%s\n%s"%(string,fielddisplay(self,'desfac','desertification elevation factor (between 0 and 1, default is 0.5) [m]')) 41 44 string="%s\n%s"%(string,fielddisplay(self,'isdelta18o','is temperature and precipitation delta18o parametrisation activated (0 or 1, default is 0)')) 45 string="%s\n%s"%(string,fielddisplay(self,'s0p','should be set to elevation from precip source (between 0 and a few 1000s m, default is 0) [m]')) 42 46 string="%s\n%s"%(string,fielddisplay(self,'monthlytemperatures','monthly surface temperatures [K], required if pdd is activated and delta18o not activated')) 43 47 string="%s\n%s"%(string,fielddisplay(self,'precipitation','surface precipitation [m/yr water eq]')) … … 61 65 self.issmbgradients=0 62 66 self.isdelta18o=0 67 self.desfac=0.5 68 self.s0p=0. 63 69 64 70 return self … … 70 76 md = checkfield(md,'surfaceforcings.issmbgradients','numel',[1],'values',[0,1]) 71 77 if self.ispdd: 78 md = checkfield(md,'surfaceforcings.desfac','<=',1,'numel',[1]); 79 md = checkfield(md,'surfaceforcings.s0p','>=',0,'numel',[1]); 72 80 if not self.isdelta18o: 73 81 md = checkfield(md,'surfaceforcings.monthlytemperatures','forcing',1,'NaN',1) … … 99 107 100 108 if self.ispdd: 109 WriteData(fid,'object',self,'fieldname','desfac','format','Double'); 110 WriteData(fid,'object',self,'fieldname','s0p','format','Double'); 101 111 if self.isdelta18o: 102 112 WriteData(fid,'object',self,'fieldname','temperatures_presentday','format','DoubleMat','mattype',1)
Note:
See TracChangeset
for help on using the changeset viewer.