Ignore:
Timestamp:
01/14/18 14:25:11 (7 years ago)
Author:
adhikari
Message:

CHG: md.esa.hemisphere introduced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/esa.py

    r22122 r22352  
    1818                self.love_h            = 0 #provided by PREM model()
    1919                self.love_l            = 0 #ideam
     20                self.hemisphere        = 0
    2021                self.degacc            = 0
    2122                self.requested_outputs = []
     
    3031                        string="%s\n%s"%(string,fielddisplay(self,'love_h','load Love number for radial displacement'))
    3132                        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'))
    3234                        string="%s\n%s"%(string,fielddisplay(self,'degacc','accuracy (default .01 deg) for numerical discretization of the Green''s functions'))
    3335                        string="%s\n%s"%(string,fielddisplay(self,'transitions','indices into parts of the mesh that will be icecaps'))
     
    4042                #numerical discretization accuracy
    4143                self.degacc=.01
    42                
     44       
     45                #computational flags:
     46                self.hemisphere=0;
     47
    4348                #output default:
    4449                self.requested_outputs=['default']
     
    6065                md = checkfield(md,'fieldname','esa.love_h','NaN',1,'Inf',1)
    6166                md = checkfield(md,'fieldname','esa.love_l','NaN',1,'Inf',1)
     67                md = checkfield(md,'fieldname','esa.hemisphere','NaN',1,'Inf',1)
    6268                md = checkfield(md,'fieldname','esa.degacc','size',[1,1],'>=',1e-10)
    6369                md = checkfield(md,'fieldname','esa.requested_outputs','stringrow',1)
     
    7581                WriteData(fid,prefix,'object',self,'fieldname','love_h','format','DoubleMat','mattype',1)
    7682                WriteData(fid,prefix,'object',self,'fieldname','love_l','format','DoubleMat','mattype',1)
     83                WriteData(fid,prefix,'object',self,'fieldname','hemisphere','format','Integer')
    7784                WriteData(fid,prefix,'object',self,'fieldname','degacc','format','Double')
    7885                WriteData(fid,prefix,'object',self,'fieldname','transitions','format','MatArray')
Note: See TracChangeset for help on using the changeset viewer.