/[escript]/trunk/downunder/py_src/domainbuilder.py
ViewVC logotype

Diff of /trunk/downunder/py_src/domainbuilder.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4212 by caltinay, Thu Feb 14 06:40:01 2013 UTC revision 4213 by caltinay, Tue Feb 19 01:16:29 2013 UTC
# Line 108  class DomainBuilder(object): Line 108  class DomainBuilder(object):
108              if pad_y > 10:              if pad_y > 10:
109                  raise ValueError("setFractionalPadding: Argument too large")                  raise ValueError("setFractionalPadding: Argument too large")
110          self._padding = [pad_x,pad_y], 'f'          self._padding = [pad_x,pad_y], 'f'
111            
112      def setPadding(self, pad_x=None, pad_y=None):      def setPadding(self, pad_x=None, pad_y=None):
113          """          """
114          Sets the amount of padding around the dataset in absolute length units.          Sets the amount of padding around the dataset in absolute length units.
# Line 161  class DomainBuilder(object): Line 161  class DomainBuilder(object):
161              if pad_y < 0:              if pad_y < 0:
162                  raise ValueError("setElementPadding: Arguments must be non-negative")                  raise ValueError("setElementPadding: Arguments must be non-negative")
163          self._padding = [pad_x,pad_y], 'e'          self._padding = [pad_x,pad_y], 'e'
164            
165      def getGravitySurveys(self):      def getGravitySurveys(self):
166          """          """
167          Returns a list of gravity surveys, see `getSurveys` for details.          Returns a list of gravity surveys, see `getSurveys` for details.
168          """          """
169          return self.getSurveys(DataSource.GRAVITY)          return self.getSurveys(DataSource.GRAVITY)
170            
171      def getMagneticSurveys(self):      def getMagneticSurveys(self):
172          """          """
173          Returns a list of magnetic surveys, see `getSurveys` for details.          Returns a list of magnetic surveys, see `getSurveys` for details.
174          """          """
175          return self.getSurveys(DataSource.MAGNETIC)          return self.getSurveys(DataSource.MAGNETIC)
176            
177      def fixDensityBelow(self, depth=None):      def fixDensityBelow(self, depth=None):
178          """          """
179          Defines the depth below which the density anomaly is set to zero.          Defines the depth below which the density anomaly is set to zero.
180          """          """
181          self.__fix_density_below=depth          self.__fix_density_below=depth
182            
183      def fixSusceptibilityBelow(self, depth=None):      def fixSusceptibilityBelow(self, depth=None):
184          """          """
185          Defines the depth below which the susceptibility anomaly is set to          Defines the depth below which the susceptibility anomaly is set to

Legend:
Removed from v.4212  
changed lines
  Added in v.4213

  ViewVC Help
Powered by ViewVC 1.1.26