Changeset 26642
- Timestamp:
- 11/18/21 08:51:52 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/stochasticforcing.py
r26641 r26642 60 60 # Check that all fields agree with the corresponding md class 61 61 checkdefaults = False 62 structstoch = s tochasticforcing.structstochforcing()62 structstoch = self.structstochforcing() 63 63 for field in self.fields: 64 64 if 'SMB' in field: … … 97 97 98 98 md = checkfield(md, 'fieldname', 'stochasticforcing.isstochasticforcing', 'values', [0, 1]) 99 md = checkfield(md, 'fieldname', 'stochasticforcing.fields', 'numel', num_fields, 'cell', 1, 'values', s tochasticforcing.supportedstochforcings())99 md = checkfield(md, 'fieldname', 'stochasticforcing.fields', 'numel', num_fields, 'cell', 1, 'values', self.supportedstochforcings()) 100 100 #md = checkfield(md, 'fieldname', 'stochasticforcing.dimensions', 'NaN', 1, 'Inf', 1, '>', 0, 'size', [num_fields]) # specific dimension for each field; NOTE: As opposed to MATLAB implementation, pass list 101 101 md = checkfield(md, 'fieldname', 'stochasticforcing.covariance', 'NaN', 1, 'Inf', 1, 'size', [size_tot, size_tot]) # global covariance matrix … … 151 151 # }}} 152 152 153 def supportedstochforcings( ): # {{{153 def supportedstochforcings(self): # {{{ 154 154 """Defines list of fields supported by the class md.stochasticforcing 155 155 """ 156 list1 = s tochasticforcing.structstochforcing()156 list1 = self.structstochforcing() 157 157 list1 = list1['fields'] 158 158 return(list1) #}}} 159 159 160 def structstochforcing( ): # {{{160 def structstochforcing(self): # {{{ 161 161 """Defines dictionary with list of fields 162 162 supported and corresponding md names
Note:
See TracChangeset
for help on using the changeset viewer.