Changeset 26486
- Timestamp:
- 10/18/21 12:20:35 (3 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/SMBautoregression.m
r26483 r26486 13 13 ar_timestep = 0; 14 14 phi = NaN; 15 covmat = NaN; 15 covmat = NaN; 16 16 basin_id = NaN; 17 17 randomflag = 1; … … 43 43 self.ar_order = 1; %dummy 1 value for autoregression 44 44 self.phi = zeros(self.num_basins,self.ar_order); %autoregression coefficients all set to 0 45 disp(' smb.ar_order (order of autoregressive model) not specified: order of autoregressive model set to 0'); 45 disp(' smb.ar_order (order of autoregressive model) not specified: order of autoregressive model set to 0'); 46 46 end 47 47 if (self.ar_initialtime==0) 48 48 self.ar_initialtime = md.timestepping.start_time; %autoregression model has no prescribed initial time 49 disp(' smb.ar_initialtime (initial time in the autoregressive model parameterization) not specified: set to md.timestepping.start_time'); 49 disp(' smb.ar_initialtime (initial time in the autoregressive model parameterization) not specified: set to md.timestepping.start_time'); 50 50 end 51 51 if (self.ar_timestep==0) 52 52 self.ar_timestep = md.timestepping.time_step; %autoregression model has no prescribed time step 53 disp(' smb.ar_timestep (timestep of autoregressive model) not specified: set to md.timestepping.time_step'); 53 disp(' smb.ar_timestep (timestep of autoregressive model) not specified: set to md.timestepping.time_step'); 54 54 end 55 55 if isnan(self.phi) … … 114 114 WriteData(fid,prefix,'object',self,'class','smb','fieldname','ar_timestep','format','Double','scale',yts); 115 115 WriteData(fid,prefix,'object',self,'class','smb','fieldname','basin_id','data',self.basin_id-1,'name','md.smb.basin_id','format','IntMat','mattype',2); %0-indexed 116 WriteData(fid,prefix,'object',self,'class','smb','fieldname','beta0','format','DoubleMat','name','md.smb.beta0','scale',1./yts,'yts', md.constants.yts);117 WriteData(fid,prefix,'object',self,'class','smb','fieldname','beta1','format','DoubleMat','name','md.smb.beta1','scale',1./(yts^2),'yts', md.constants.yts);118 WriteData(fid,prefix,'object',self,'class','smb','fieldname','phi','format','DoubleMat','name','md.smb.phi','yts', md.constants.yts);119 WriteData(fid,prefix,'object',self,'class','smb','fieldname','covmat','format','DoubleMat','name','md.smb.covmat','scale',1./(yts^2),'yts', md.constants.yts);116 WriteData(fid,prefix,'object',self,'class','smb','fieldname','beta0','format','DoubleMat','name','md.smb.beta0','scale',1./yts,'yts',yts); 117 WriteData(fid,prefix,'object',self,'class','smb','fieldname','beta1','format','DoubleMat','name','md.smb.beta1','scale',1./(yts^2),'yts',yts); 118 WriteData(fid,prefix,'object',self,'class','smb','fieldname','phi','format','DoubleMat','name','md.smb.phi','yts',yts); 119 WriteData(fid,prefix,'object',self,'class','smb','fieldname','covmat','format','DoubleMat','name','md.smb.covmat','scale',1./(yts^2),'yts',yts); 120 120 WriteData(fid,prefix,'object',self,'class','smb','fieldname','randomflag','format','Boolean'); 121 WriteData(fid, prefix, 'object', self, 'fieldname', 'steps_per_step', 'format','Integer');122 WriteData(fid, prefix, 'object', self, 'fieldname', 'averaging', 'format','Integer');121 WriteData(fid,prefix,'object',self,'fieldname','steps_per_step','format','Integer'); 122 WriteData(fid,prefix,'object',self,'fieldname','averaging','format','Integer'); 123 123 124 124 %process requested outputs -
issm/trunk-jpl/src/m/classes/SMBcomponents.m
r26358 r26486 83 83 84 84 WriteData(fid,prefix,'name','md.smb.model','data',2,'format','Integer'); 85 WriteData(fid,prefix,'object',self,'class','smb','fieldname','accumulation','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts', md.constants.yts);86 WriteData(fid,prefix,'object',self,'class','smb','fieldname','runoff','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts', md.constants.yts);87 WriteData(fid,prefix,'object',self,'class','smb','fieldname','evaporation','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts', md.constants.yts);85 WriteData(fid,prefix,'object',self,'class','smb','fieldname','accumulation','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',yts); 86 WriteData(fid,prefix,'object',self,'class','smb','fieldname','runoff','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',yts); 87 WriteData(fid,prefix,'object',self,'class','smb','fieldname','evaporation','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',yts); 88 88 WriteData(fid, prefix, 'object', self, 'fieldname', 'steps_per_step', 'format', 'Integer'); 89 89 WriteData(fid, prefix, 'object', self, 'fieldname', 'averaging', 'format', 'Integer'); -
issm/trunk-jpl/src/m/classes/SMBcomponents.py
r26358 r26486 61 61 if np.all(np.isnan(self.evaporation)): 62 62 self.evaporation = np.zeros((md.mesh.numberofvertices)) 63 print( " no SMB.evaporation specified: values set as zero")63 print(' no SMB.evaporation specified: values set as zero') 64 64 if np.all(np.isnan(self.runoff)): 65 65 self.runoff = np.zeros((md.mesh.numberofvertices)) 66 print( " no SMB.runoff specified: values set as zero")66 print(' no SMB.runoff specified: values set as zero') 67 67 return self 68 68 # }}}
Note:
See TracChangeset
for help on using the changeset viewer.