Changeset 19190
- Timestamp:
- 03/09/15 09:42:38 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/SMBpdd.py
r19027 r19190 27 27 self.isdelta18o = 0 28 28 self.ismungsm = 0 29 self.isd18opd = 0 29 30 self.delta18o = float('NaN') 30 31 self.delta18o_surface = float('NaN') … … 42 43 string="%s\n%s"%(string,fielddisplay(self,'isdelta18o','is temperature and precipitation delta18o parametrisation activated (0 or 1, default is 0)')) 43 44 string="%s\n%s"%(string,fielddisplay(self,'ismungsm','is temperature and precipitation mungsm parametrisation activated (0 or 1, default is 0)')) 45 string="%s\n%s"%(string,fielddisplay(self,'isd18opd','is delta18o parametrisation from present day temperature and precipitation activated (0 or 1, default is 0)')) 44 46 string="%s\n%s"%(string,fielddisplay(self,'desfac','desertification elevation factor (between 0 and 1, default is 0.5) [m]')) 45 47 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]')) … … 71 73 def extrude(self,md): # {{{ 72 74 73 if not (self.isdelta18o and self.ismungsm ):75 if not (self.isdelta18o and self.ismungsm and self.isd18opd): 74 76 self.precipitation=project3d(md,'vector',self.precipitation,'type','node') 75 77 self.monthlytemperatures=project3d(md,'vector',self.monthlytemperatures,'type','node') … … 114 116 md = checkfield(md,'fieldname','surfaceforcings.rlapslgm','>=',0,'numel',[1]) 115 117 116 if (self.isdelta18o==0 and self.ismungsm==0 ):118 if (self.isdelta18o==0 and self.ismungsm==0 and self.isd18opd): 117 119 md = checkfield(md,'fieldname','surfaceforcings.monthlytemperatures','NaN',1) 118 120 md = checkfield(md,'fieldname','surfaceforcings.precipitation','NaN',1) … … 145 147 WriteData(fid,'object',self,'class','surfaceforcings','fieldname','isdelta18o','format','Boolean') 146 148 WriteData(fid,'object',self,'class','surfaceforcings','fieldname','ismungsm','format','Boolean') 149 WriteData(fid,'object',self,'class','surfaceforcings','fieldname','isd18opd','format','Boolean') 147 150 WriteData(fid,'object',self,'class','surfaceforcings','fieldname','desfac','format','Double') 148 151 WriteData(fid,'object',self,'class','surfaceforcings','fieldname','s0p','format','Double')
Note:
See TracChangeset
for help on using the changeset viewer.