source:
issm/oecreview/Archive/21724-22754/ISSM-22351-22352.diff@
22755
Last change on this file since 22755 was 22755, checked in by , 7 years ago | |
---|---|
File size: 5.9 KB |
-
../trunk-jpl/src/m/classes/esa.m
43 43 md = checkfield(md,'fieldname','esa.deltathickness','NaN',1,'Inf',1,'size',[md.mesh.numberofelements 1]); 44 44 md = checkfield(md,'fieldname','esa.love_h','NaN',1,'Inf',1); 45 45 md = checkfield(md,'fieldname','esa.love_l','NaN',1,'Inf',1); 46 md = checkfield(md,'fieldname','esa.hemisphere','NaN',1,'Inf',1); 46 47 md = checkfield(md,'fieldname','esa.degacc','size',[1 1],'>=',1e-10); 47 48 md = checkfield(md,'fieldname','esa.requested_outputs','stringrow',1); 48 49 -
../trunk-jpl/src/m/classes/esa.py
17 17 self.deltathickness = float('NaN') 18 18 self.love_h = 0 #provided by PREM model() 19 19 self.love_l = 0 #ideam 20 self.hemisphere = 0 20 21 self.degacc = 0 21 22 self.requested_outputs = [] 22 23 self.transitions = [] … … 29 30 string="%s\n%s"%(string,fielddisplay(self,'deltathickness','thickness change: ice height equivalent [m]')) 30 31 string="%s\n%s"%(string,fielddisplay(self,'love_h','load Love number for radial displacement')) 31 32 string="%s\n%s"%(string,fielddisplay(self,'love_l','load Love number for horizontal displaements')) 33 string="%s\n%s"%(string,fielddisplay(self,'hemisphere','North-south, East-west components of 2-D horiz displacement vector: -1 south, 1 north')) 32 34 string="%s\n%s"%(string,fielddisplay(self,'degacc','accuracy (default .01 deg) for numerical discretization of the Green''s functions')) 33 35 string="%s\n%s"%(string,fielddisplay(self,'transitions','indices into parts of the mesh that will be icecaps')) 34 36 string="%s\n%s"%(string,fielddisplay(self,'requested_outputs','additional outputs requested (default: EsaUmotion)')) … … 39 41 40 42 #numerical discretization accuracy 41 43 self.degacc=.01 42 44 45 #computational flags: 46 self.hemisphere=0; 47 43 48 #output default: 44 49 self.requested_outputs=['default'] 45 50 … … 59 64 md = checkfield(md,'fieldname','esa.deltathickness','NaN',1,'Inf',1,'size',[md.mesh.numberofelements,1]) 60 65 md = checkfield(md,'fieldname','esa.love_h','NaN',1,'Inf',1) 61 66 md = checkfield(md,'fieldname','esa.love_l','NaN',1,'Inf',1) 67 md = checkfield(md,'fieldname','esa.hemisphere','NaN',1,'Inf',1) 62 68 md = checkfield(md,'fieldname','esa.degacc','size',[1,1],'>=',1e-10) 63 69 md = checkfield(md,'fieldname','esa.requested_outputs','stringrow',1) 64 70 … … 74 80 WriteData(fid,prefix,'object',self,'fieldname','deltathickness','format','DoubleMat','mattype',2) 75 81 WriteData(fid,prefix,'object',self,'fieldname','love_h','format','DoubleMat','mattype',1) 76 82 WriteData(fid,prefix,'object',self,'fieldname','love_l','format','DoubleMat','mattype',1) 83 WriteData(fid,prefix,'object',self,'fieldname','hemisphere','format','Integer') 77 84 WriteData(fid,prefix,'object',self,'fieldname','degacc','format','Double') 78 85 WriteData(fid,prefix,'object',self,'fieldname','transitions','format','MatArray') 79 86 -
../trunk-jpl/src/m/classes/esa.js
9 9 10 10 //numerical discretization accuracy 11 11 this.degacc=.01; 12 12 13 //computational flags: 14 this.hemisphere=0; 15 13 16 //output default: 14 17 this.requested_outputs=['default']; 15 18 … … 25 28 md = checkfield(md,'fieldname','esa.deltathickness','NaN',1,'Inf',1,'size',[md.mesh.numberofelements, 1]); 26 29 md = checkfield(md,'fieldname','esa.love_h','NaN',1,'Inf',1); 27 30 md = checkfield(md,'fieldname','esa.love_l','NaN',1,'Inf',1); 31 md = checkfield(md,'fieldname','esa.hemisphere','NaN',1,'Inf',1); 28 32 md = checkfield(md,'fieldname','esa.degacc','size',[1, 1],'>=',1e-10); 29 33 md = checkfield(md,'fieldname','esa.requested_outputs','stringrow',1); 30 34 … … 47 51 fielddisplay(this,'deltathickness','thickness change: ice height equivalent [m]'); 48 52 fielddisplay(this,'love_h','load Love number for radial displacement'); 49 53 fielddisplay(this,'love_l','load Love number for horizontal displacements'); 54 fielddisplay(this,'hemisphere','North-south, East-west components of 2-D horiz displacement vector: -1 south, 1 north'); 50 55 fielddisplay(this,'degacc',"accuracy (default .01 deg) for numerical discretization of the Green's functions"); 51 56 fielddisplay(this,'transitions','indices into parts of the mesh that will be icecaps'); 52 57 fielddisplay(this,'requested_outputs','additional outputs requested (default: EsaUmotion)'); … … 56 61 WriteData(fid,prefix,'object',this,'fieldname','deltathickness','format','DoubleMat','mattype',2); 57 62 WriteData(fid,prefix,'object',this,'fieldname','love_h','format','DoubleMat','mattype',1); 58 63 WriteData(fid,prefix,'object',this,'fieldname','love_l','format','DoubleMat','mattype',1); 64 WriteData(fid,prefix,'object',this,'fieldname','hemisphere','format','Integer'); 59 65 WriteData(fid,prefix,'object',this,'fieldname','degacc','format','Double'); 60 66 WriteData(fid,prefix,'object',this,'fieldname','transitions','format','MatArray'); 61 67 … … 74 80 this.deltathickness=NullFix(this.deltathickness,NaN); 75 81 this.love_h=NullFix(this.love_h,NaN); 76 82 this.love_l=NullFix(this.love_l,NaN); 83 this.hemisphere=NullFix(this.hemisphere,NaN); 77 84 this.degacc=NullFix(this.degacc,NaN); 78 85 }//}}} 79 86 //properties … … 81 88 this.deltathickness = NaN; 82 89 this.love_h = 0; //provided by PREM model 83 90 this.love_l = 0; //idam 91 this.hemisphere = 0; 84 92 this.degacc = 0; 85 93 this.requested_outputs = []; 86 94 this.transitions = [];
Note:
See TracBrowser
for help on using the repository browser.